/* ==========================================================================
   EstGhillie — shop styles (replaces WooCommerce's default stylesheets)
   1. Notices  2. Product cards  3. Shop page  4. Product stage
   5. Product details  6. Forms & tables  7. Account  8. Cart drawer
   9. Search overlay  10. Checkout
   ========================================================================== */

/* 1. Notices -------------------------------------------------------------- */
.woocommerce-notices-wrapper:empty {
	display: none;
}

.site-main--product > .woocommerce-notices-wrapper {
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding: 1.5rem var(--gutter) 0;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--success);
	background: var(--white);
	font-weight: 500;
}

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

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

.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus {
	outline: 0;
}

.woocommerce-message .button,
.woocommerce-info .button {
	order: 2;
	min-height: 2.5rem;
	margin-left: auto;
	padding: 0.5rem 1.1rem;
	font-size: 0.8125rem;
}

.woocommerce-error li {
	flex: 1 1 100%;
}

/* 2. Product cards -------------------------------------------------------- */
ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2.25rem, 4vw, 3.5rem) clamp(0.75rem, 1.4vw, 1.25rem);
	clear: both;
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

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

ul.products li.product {
	position: relative;
	min-width: 0;
}

.product-card__media {
	--cut: 22px;
	position: relative;
	aspect-ratio: 4 / 5;
	margin-bottom: 1rem;
	overflow: hidden;
	background: var(--khaki);
}

/* The photos are blended onto the tile colour inside this link, once; hover then scales
   the finished tile, which costs the browser nothing to redraw. */
.product-card__link {
	position: absolute;
	inset: 0;
	display: block;
	isolation: isolate;
	background: var(--khaki);
	transition: transform 0.9s var(--ease);
}

.product-card__link img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
	filter: brightness(1.1) contrast(1.05);
	transition: opacity 0.4s var(--ease);
}

.product-card__hover {
	opacity: 0;
}

.product-card__badges {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	pointer-events: none;
}

.badge,
.onsale {
	padding: 0.32rem 0.6rem;
	background: var(--ink);
	color: var(--bone);
	font-size: 0.6875rem;
	font-weight: 700;
	font-stretch: 95%;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}

.badge--sale,
.onsale {
	background: var(--signal);
	color: var(--ink);
}

.badge--low {
	background: var(--bone);
	color: var(--ink);
}

/* Quick add: slides up over the photo on hover. */
.product-card__media .button {
	--cut: 9px;
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	z-index: 2;
	min-height: 2.9rem;
	padding: 0.6rem 1rem;
	background: var(--ink);
	color: var(--bone);
	font-size: 0.8125rem;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.25s, color 0.25s;
}

.product-card__media .button:hover {
	background: var(--signal);
	color: var(--ink);
}

.product-card__media .button.loading {
	opacity: 0.7;
	pointer-events: none;
}

.product-card__media .added_to_cart {
	display: none;
}

@media (hover: hover) {
	li.product:hover .product-card__link {
		transform: scale(1.04);
	}

	li.product:hover .product-card__hover {
		opacity: 1;
	}

	li.product:hover .product-card__link:has(.product-card__hover) img:first-child {
		opacity: 0;
	}

	li.product:hover .product-card__media .button,
	.product-card__media .button:focus-visible {
		opacity: 1;
		transform: none;
	}
}

.product-card__info {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0.2rem 1rem;
}

.product-card__cat {
	color: var(--stone);
}

/* Label and price share the first row; the name gets a full row to itself. */
.product-card__info .price {
	grid-row: 1;
	grid-column: 2;
}

.woocommerce-loop-product__title {
	grid-column: 1 / -1;
	margin: 0;
	font-size: clamp(1.05rem, 1.5vw, 1.375rem);
	font-stretch: 112%;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.woocommerce-loop-product__title a {
	text-decoration: none;
}

/* The whole card is clickable through the title link. */
.woocommerce-loop-product__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.product-card__info .price {
	font-size: 0.9375rem;
	font-weight: 700;
	white-space: nowrap;
}

.price del {
	margin-right: 0.4em;
	color: var(--stone);
	font-weight: 400;
}

.price ins {
	color: var(--signal);
	text-decoration: none;
}

@media (max-width: 520px) {
	.product-card__cat {
		display: none;
	}

	.product-card__info .price {
		grid-row: 2;
		grid-column: 1;
	}

	.woocommerce-loop-product__title {
		grid-row: 1;
		font-size: 0.9375rem;
		font-stretch: 100%;
	}

	.product-card__media {
		--cut: 14px;
	}
}

/* Front page lineup: one draggable row */
.lineup ul.products {
	display: flex;
	gap: clamp(0.75rem, 1.4vw, 1.25rem);
	margin-inline: calc(var(--gutter) * -1);
	padding: 0 var(--gutter) 0.5rem;
	overflow-x: auto;
	/* Without this the row also scrolls a few pixels vertically whenever a card
	   is nudged (hover, focus ring), and the mouse wheel gets stuck in it. */
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}

.lineup ul.products::-webkit-scrollbar {
	display: none;
}

.lineup ul.products li.product {
	flex: 0 0 clamp(240px, 29vw, 430px);
	scroll-snap-align: start;
}

/* Star ratings (plain glyphs, no icon font) */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5.5em;
	height: 1.1em;
	overflow: hidden;
	font-size: 0.9375rem;
	line-height: 1.1;
	letter-spacing: 0.1em;
	white-space: nowrap;
}

.star-rating::before,
.star-rating span::before {
	content: "\2605\2605\2605\2605\2605";
	position: absolute;
	top: 0;
	left: 0;
}

.star-rating::before {
	color: rgba(128, 128, 120, 0.5);
}

.star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
	color: transparent;
}

.star-rating span::before {
	color: var(--signal);
}

/* 3. Shop page ------------------------------------------------------------ */
/*
 * Main shop page (shop-by-category.php): one full-width band per category.
 *
 * Layers, back to front: band colour → oversized category name (tone on tone)
 * → category image → text and products. The image is multiplied onto whatever
 * is behind it, so a studio photo on white stands in the band as a cut-out and
 * the big name stays visible around it. For that to work the image and the
 * name must NOT get their own stacking context (no z-index, transform or
 * opacity on them): they are layered by source order alone.
 */
.site-main--bands {
	padding-block: 0;
}

.site-main--bands > .container:has(.woocommerce-notices-wrapper:not(:empty)) {
	padding-top: 2rem;
}

.shop-grouped .hero > .fringe {
	--fringe-color: var(--khaki);
}

.shop-band {
	--band-bg: var(--khaki);
	--band-ink: var(--ink);
	--band-soft: var(--stone);
	--band-ghost: rgba(17, 20, 14, 0.065);
	--tile: var(--bone);
	--media-w: 42%;
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(580px, 90svh, 880px);
	padding-block: clamp(6rem, 13vw, 11.5rem) clamp(4.5rem, 9.5vw, 8.5rem);
	background: var(--band-bg);
	color: var(--band-ink);
	scroll-margin-top: var(--header-h);
}

.shop-band--cols-1,
.shop-band--cols-3 {
	--media-w: 36%;
}

.shop-band > .fringe {
	--fringe-color: var(--band-bg);
}

/* Textured bands: the fringe continues the band's pattern and shading (see
   the note on .fringe--top in main.css), so no seam shows at the band's edge. */
.shop-band--dark > .fringe {
	background:
		linear-gradient(rgba(12, 16, 11, 0.45), rgba(12, 16, 11, 0.45)),
		var(--forest) var(--camo-dark) 0 calc(100% - 1px) / var(--camo-size);
}

.shop-band--moss > .fringe {
	background: linear-gradient(rgba(12, 16, 11, 0.45), rgba(12, 16, 11, 0.45)), var(--band-bg);
}

.shop-band--bone {
	--band-bg: var(--bone);
	--tile: var(--khaki);
}

.shop-band--dark,
.shop-band--moss {
	--band-ink: var(--bone);
	--band-soft: var(--sage);
	--band-ghost: rgba(243, 239, 228, 0.055);
	--tile: var(--khaki);
}

.shop-band--dark {
	--band-bg: var(--forest);
	background: var(--forest) var(--camo-dark) 0 0 / var(--camo-size);
}

.shop-band--moss {
	--band-bg: #2d3a26;
}

.shop-band--dark::before,
.shop-band--moss::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(12, 16, 11, 0.45), rgba(12, 16, 11, 0.1) 45%, rgba(12, 16, 11, 0.5)), var(--grain);
	pointer-events: none;
}

/* Oversized category name: sized from its length so it spans the band. */
.shop-band__ghost {
	position: absolute;
	inset: clamp(1.25rem, 3vw, 3rem) 0 auto;
	overflow: hidden;
	color: var(--band-ghost);
	font-size: min(17vw, 95vw / (var(--len, 10) * 0.84));
	font-weight: 800;
	font-stretch: 125%;
	line-height: 0.82;
	letter-spacing: -0.03em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}

/* Category image: stands on the band's bottom edge, full height. */
.shop-band__media {
	position: absolute;
	inset: clamp(2rem, 5vw, 4.5rem) auto 0 0;
	width: var(--media-w);
	pointer-events: none;
}

.shop-band--flip .shop-band__media {
	inset-inline: auto 0;
}

/* On dark bands a pool of moss light behind the subject keeps it readable;
   towards the edges the photo sinks into the dark. */
.shop-band--dark .shop-band__media,
.shop-band--moss .shop-band__media {
	background: radial-gradient(ellipse 50% 46% at 50% 58%, #a7b08e 0%, #8a9672 34%, rgba(138, 150, 114, 0.35) 70%, rgba(138, 150, 114, 0) 100%);
}

.shop-band__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 100%;
	mix-blend-mode: multiply;
	filter: brightness(1.1) contrast(1.05);
	/* Feathers the photo's own edges so no rectangle can show. */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 8%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 8%);
	mask-composite: intersect;
}

.shop-band__inner {
	position: relative;
}

/* Text and products take the side the image leaves free. */
.shop-band__content {
	margin-left: var(--media-w);
	padding-left: clamp(0rem, 2vw, 2rem);
}

.shop-band--flip .shop-band__content {
	margin-left: 0;
	margin-right: var(--media-w);
	padding-left: 0;
	padding-right: clamp(0rem, 2vw, 2rem);
}

.shop-band--no-image .shop-band__content {
	margin-inline: 0;
	padding-inline: 0;
}

.shop-band__head {
	margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.shop-band__count {
	margin-bottom: 1rem;
	color: var(--band-soft);
}

.shop-band__title {
	margin: 0 0 1rem;
	/* --n: longest word, so a long category name stays on one line. */
	font-size: min(clamp(2.2rem, 4.8vw, 4.75rem), 46vw / (var(--n, 6) * 0.82));
	font-stretch: 122%;
	line-height: 0.95;
}

.shop-band__text {
	max-width: 40ch;
	margin: 0;
	color: var(--band-soft);
	font-size: 1.125rem;
}

.shop-band--dark .shop-band__text,
.shop-band--moss .shop-band__text {
	color: rgba(243, 239, 228, 0.82);
}

/* A single product: the text sits beside one large card instead of above a
   mostly empty row. */
.shop-band--cols-1 .shop-band__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
	align-items: end;
	gap: clamp(1.5rem, 3vw, 3rem);
}

.shop-band--cols-1 .shop-band__head {
	margin-bottom: clamp(1rem, 4vw, 4rem);
}

.shop-band--cols-1 .shop-band__title {
	font-size: min(clamp(2.2rem, 4.8vw, 4.75rem), 33vw / (var(--n, 6) * 0.9));
}

/* Product cards inside a band */
.shop-band ul.products.columns-1 {
	grid-template-columns: minmax(0, 1fr);
}

.shop-band .product-card__media,
.shop-band .product-card__link {
	background: var(--tile);
}

.shop-band .product-card__cat {
	display: none;
}

/* Name on its own line, price under it: long compound names need the width. */
.shop-band .woocommerce-loop-product__title {
	grid-column: 1 / -1;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	font-stretch: 104%;
}

.shop-band .product-card__info .price {
	grid-row: 2;
	grid-column: 1;
}

.shop-band--dark .woocommerce-loop-product__title a,
.shop-band--moss .woocommerce-loop-product__title a,
.shop-band--dark .price,
.shop-band--moss .price {
	color: var(--bone);
}

@media (max-width: 860px) {
	.shop-band {
		display: block;
		min-height: 0;
		padding-block: clamp(3rem, 14vw, 5rem) 4.75rem;
	}

	.shop-band__ghost {
		top: 1.25rem;
	}

	.shop-band__media,
	.shop-band--flip .shop-band__media {
		position: relative;
		inset: auto;
		width: 100%;
		height: 82vw;
		max-height: 460px;
		margin-bottom: 1.75rem;
	}

	.shop-band__content,
	.shop-band--flip .shop-band__content {
		margin-inline: 0;
		padding-inline: 0;
	}

	.shop-band--cols-1 .shop-band__content {
		display: block;
	}

	.shop-band--cols-1 .shop-band__head {
		margin-bottom: 1.75rem;
	}

	.shop-band__title,
	.shop-band--cols-1 .shop-band__title {
		font-size: min(2.75rem, 84vw / (var(--n, 6) * 0.82));
	}
}

nav.woocommerce-pagination {
	margin-top: 3.5rem;
}

nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* 4. Product stage -------------------------------------------------------- */
/*
 * Left: a khaki "studio wall". The gallery is multiplied onto it, so a photo
 * shot on white stands on the wall as a cut-out and the oversized product
 * name behind it stays visible around the figure.
 * Right: the dark buy panel.
 */
.pdp-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	min-height: min(100svh - var(--header-h), 960px);
}

.pdp-stage__media {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 1.25rem var(--gutter) 1.5rem;
	background: radial-gradient(62% 58% at 52% 46%, #e9e3d3 0%, var(--khaki) 78%);
}

.pdp-stage__media .breadcrumbs {
	position: relative;
	z-index: 2;
	color: var(--stone);
}

.pdp-stage__media .breadcrumbs a {
	color: var(--ink);
}

.pdp-stage__ghost {
	position: absolute;
	inset: 9% -2% auto -1%;
	z-index: -1;
	color: var(--khaki-deep);
	/* --n is the length of the longest word, so that word always fits the wall. */
	font-size: min(13.5vw, 14rem, 55vw / (var(--n, 6) * 0.78));
	font-weight: 800;
	font-stretch: 125%;
	line-height: 0.84;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	pointer-events: none;
	user-select: none;
}

.pdp-stage__media > .onsale {
	position: absolute;
	top: 3.5rem;
	left: var(--gutter);
	z-index: 3;
	font-size: 0.78rem;
}

.woocommerce-product-gallery {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	mix-blend-mode: multiply;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image a {
	display: block;
	cursor: zoom-in;
}

.woocommerce-product-gallery__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: clamp(360px, 70svh, 780px);
	margin-inline: auto;
	object-fit: contain;
	filter: brightness(1.1) contrast(1.05);
	/* Feathers the photo's own edges so no rectangle shows on the wall. */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 95%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 95%, transparent);
	mask-composite: intersect;
}

.woocommerce-product-gallery .flex-control-thumbs {
	position: absolute;
	top: 50%;
	left: 0;
	z-index: 3;
	display: grid;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
}

.woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 58px;
	height: 70px;
	object-fit: cover;
	object-position: 50% 20%;
	outline: 1px solid rgba(17, 20, 14, 0.2);
	outline-offset: -1px;
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.2s, outline-color 0.2s;
}

.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
	outline: 2px solid var(--ink);
	outline-offset: -2px;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 5;
	width: 48px;
	height: 48px;
	overflow: hidden;
	background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3efe4' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 22px no-repeat;
	font-size: 0;
	color: transparent;
}

.woocommerce-product-gallery__trigger img {
	display: none !important;
}

/* Buy panel */
.pdp-stage .summary {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.25rem, 4.5vw, 4.5rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3.6vw, 3.75rem);
	background: var(--forest) var(--camo-dark) 0 0 / var(--camo-size);
	color: var(--bone);
}

.pdp-stage .summary::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(160deg, rgba(12, 16, 11, 0.35), rgba(12, 16, 11, 0.7)), var(--grain);
}

.pdp-stage .summary > * {
	max-width: 34rem;
}

.summary__kicker {
	margin-bottom: 1rem;
	color: var(--sage);
}

.summary__kicker a {
	text-decoration: none;
}

.product_title {
	margin: 0 0 1.1rem;
	/* --n is the length of the longest word, so it never has to be split. */
	font-size: min(clamp(2rem, 3.7vw, 3.75rem), 32vw / (var(--n, 6) * 0.84));
	font-stretch: 120%;
	line-height: 0.95;
}

.pdp-stage .summary > .price {
	margin: 0 0 1.4rem;
	font-size: clamp(1.6rem, 2.3vw, 2.1rem);
	font-weight: 700;
	font-stretch: 105%;
	line-height: 1;
}

.pdp-stage .summary .price del {
	color: var(--sage);
}

.woocommerce-product-details__short-description {
	margin-bottom: 1.9rem;
	color: rgba(243, 239, 228, 0.8);
	font-size: 1.0625rem;
}

.woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

.woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1rem;
	font-size: 0.9375rem;
}

/* Stock */
.stock {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1.1rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.stock::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	background: #8fd07f;
	box-shadow: 0 0 0 4px rgba(143, 208, 127, 0.18);
}

.stock.out-of-stock::before {
	background: #ef7a6c;
	box-shadow: 0 0 0 4px rgba(239, 122, 108, 0.18);
}

.stock.available-on-backorder::before {
	background: var(--signal);
	box-shadow: 0 0 0 4px rgba(226, 103, 42, 0.2);
}

/* Variations */
table.variations {
	display: block;
	width: 100%;
	margin-bottom: 1.4rem;
	border-collapse: collapse;
}

table.variations tbody,
table.variations tr,
table.variations th,
table.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

table.variations tr + tr {
	margin-top: 1.25rem;
}

table.variations label {
	display: flex;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
	color: var(--sage);
	font-size: 0.78rem;
	font-weight: 600;
	font-stretch: 92%;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.swatch-current {
	color: var(--bone);
}

table.variations select {
	background-color: var(--bone);
}

.has-swatches select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}

.swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.9rem;
	padding: 0.4rem 1rem;
	border: 1px solid rgba(243, 239, 228, 0.32);
	background: transparent;
	color: var(--bone);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, opacity 0.2s;
}

.swatch:hover {
	border-color: var(--bone);
}

.swatch.is-selected {
	border-color: var(--signal);
	background: rgba(226, 103, 42, 0.16);
	box-shadow: inset 0 0 0 1px var(--signal);
}

.swatch.is-disabled {
	opacity: 0.32;
	text-decoration: line-through;
	cursor: not-allowed;
}

.swatch--image {
	width: 4.4rem;
	height: 4.4rem;
	padding: 3px;
	background: var(--khaki);
}

.swatch--image.is-selected {
	background: var(--khaki);
	box-shadow: 0 0 0 1px var(--signal);
	border-color: var(--signal);
	border-width: 2px;
}

.swatch--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
	filter: brightness(1.1) contrast(1.05);
}

.reset_variations {
	display: inline-block;
	margin-top: 0.75rem;
	color: var(--sage);
	font-size: 0.8125rem;
}

.woocommerce-variation-price {
	margin-bottom: 1rem;
}

.woocommerce-variation-price .price {
	font-size: 1.6rem;
	font-weight: 700;
}

.woocommerce-variation-description p {
	color: var(--sage);
}

/* Add to cart */
form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

form.cart {
	margin: 0 0 1.75rem;
}

div.quantity {
	display: inline-flex;
	border: 1px solid rgba(243, 239, 228, 0.32);
}

div.quantity:has(input[type="hidden"]) {
	display: none;
}

div.quantity .qty {
	width: 3rem;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	color: inherit;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

div.quantity .qty:focus {
	box-shadow: none;
}

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

.qty-btn {
	width: 2.9rem;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s;
}

.qty-btn:hover {
	background: rgba(243, 239, 228, 0.12);
}

.single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 3.75rem;
	font-size: 1rem;
}

.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.single_add_to_cart_button.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.pdp-error {
	margin: 0 0 1.25rem;
	padding: 0.8rem 1rem;
	border-left: 3px solid #ef7a6c;
	background: rgba(239, 122, 108, 0.12);
	font-size: 0.9375rem;
}

/* Selling points under the button */
.product-usps {
	display: grid;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 1.25rem 0;
	border-block: 1px solid var(--line-light);
	font-size: 0.9375rem;
}

.product-usps li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
}

.product-usps strong {
	display: block;
}

.product-usps .icon {
	flex: none;
	margin-top: 0.2rem;
	color: var(--signal);
}

.product-usps strong {
	font-weight: 700;
}

.product-usps__text {
	color: var(--sage);
}

/* Sticky buy bar (small screens) */
.buybar {
	position: fixed;
	inset: auto 0 0;
	z-index: 55;
	display: none;
	align-items: center;
	gap: 1rem;
	padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
	background: var(--night);
	color: var(--bone);
	border-top: 1px solid var(--line-light);
	transform: translateY(105%);
	transition: transform 0.4s var(--ease);
}

.buybar.is-visible {
	transform: none;
}

.buybar__info {
	flex: 1;
	min-width: 0;
}

.buybar__name {
	display: block;
	overflow: hidden;
	font-size: 0.9375rem;
	font-weight: 800;
	font-stretch: 110%;
	line-height: 1.15;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.buybar__price {
	font-size: 0.875rem;
	color: var(--sage);
}

.buybar .btn {
	flex: none;
	min-height: 3rem;
	padding-inline: 1.25rem;
}

@media (max-width: 900px) {
	.pdp-stage {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.pdp-stage__media {
		padding-bottom: 1rem;
	}

	.pdp-stage__ghost {
		top: 5.5rem;
		font-size: min(24vw, 92vw / (var(--n, 6) * 0.78));
	}

	.product_title {
		font-size: min(2.75rem, 86vw / (var(--n, 6) * 0.84));
	}

	.woocommerce-product-gallery__image img {
		height: clamp(320px, 56svh, 560px);
	}

	.woocommerce-product-gallery .flex-control-thumbs {
		position: static;
		display: flex;
		justify-content: center;
		gap: 0.4rem;
		margin-top: 0.75rem;
		transform: none;
	}

	.woocommerce-product-gallery .flex-control-thumbs img {
		width: 46px;
		height: 56px;
	}

	.pdp-stage .summary {
		padding: 2.25rem var(--gutter) 2.75rem;
	}

	.buybar {
		display: flex;
	}
}

/* 5. Product details ------------------------------------------------------ */
.pdp-section {
	display: grid;
	grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
	align-items: start;
	gap: 1.5rem clamp(2rem, 6vw, 6rem);
	padding-block: clamp(3rem, 6.5vw, 6rem);
	border-bottom: 1px solid var(--line);
}

.pdp-section__title {
	position: sticky;
	top: calc(var(--header-h) + 2rem);
	margin: 0;
	font-size: clamp(1.75rem, 3.4vw, 3rem);
	font-stretch: 122%;
}

.pdp-section__content {
	max-width: 780px;
	font-size: 1.125rem;
}

.pdp-section__content > :last-child {
	margin-bottom: 0;
}

.pdp-section__content ul {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	border-top: 1px solid var(--line);
}

.pdp-section__content ul li {
	position: relative;
	padding: 1rem 0 1rem 2.4rem;
	border-bottom: 1px solid var(--line);
	font-weight: 500;
}

table.shop_attributes {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid var(--line);
}

table.shop_attributes th,
table.shop_attributes td {
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

table.shop_attributes th {
	width: 38%;
	padding-right: 1.5rem;
	color: var(--stone);
	font-size: 0.78rem;
	font-weight: 600;
	font-stretch: 92%;
	letter-spacing: 0.18em;
	line-height: 2.2;
	text-transform: uppercase;
}

table.shop_attributes td {
	font-weight: 600;
}

table.shop_attributes p {
	margin: 0;
}

.related,
.upsells,
.up-sells {
	padding-block: var(--section);
}

.related > h2,
.upsells > h2,
.up-sells > h2 {
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	font-size: clamp(2.1rem, 5.6vw, 5rem);
	font-stretch: 122%;
	line-height: 0.95;
}

@media (max-width: 760px) {
	.pdp-section {
		grid-template-columns: minmax(0, 1fr);
	}

	.pdp-section__title {
		position: static;
	}

	.pdp-section__content {
		font-size: 1.0625rem;
	}
}

/* Reviews */
#reviews .commentlist {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

#reviews .comment_container {
	display: flex;
	gap: 1rem;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--line);
}

#reviews .avatar {
	width: 44px;
	height: 44px;
}

#reviews .comment-form label {
	display: block;
}

p.stars a {
	display: inline-block;
	width: 1.6rem;
	overflow: hidden;
	font-size: 0;
	text-decoration: none;
}

p.stars a::before {
	content: "\2605";
	color: var(--khaki-deep);
	font-size: 1.5rem;
}

p.stars:hover a::before,
p.stars.selected a:not(.active)::before,
p.stars.selected a.active::before {
	color: var(--signal);
}

p.stars a:hover ~ a::before,
p.stars.selected:not(:hover) a.active ~ a::before {
	color: var(--khaki-deep);
}

/* 6. Forms & tables ------------------------------------------------------- */
.form-row {
	margin: 0 0 1.1rem;
}

.form-row label {
	display: block;
}

.form-row-first,
.form-row-last {
	display: inline-block;
	width: calc(50% - 0.6rem);
	vertical-align: top;
}

.form-row-first {
	margin-right: 1rem;
}

@media (max-width: 560px) {
	.form-row-first,
	.form-row-last {
		display: block;
		width: 100%;
		margin-right: 0;
	}
}

.required {
	color: var(--danger);
	text-decoration: none;
}

.woocommerce-invalid input.input-text,
.woocommerce-invalid select {
	border-color: var(--danger);
}

.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.password-input {
	position: relative;
	display: block;
}

.show-password-input {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	background: none;
	transform: translateY(-50%);
	cursor: pointer;
}

.show-password-input::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	margin: auto;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367635a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

table.shop_table {
	width: 100%;
	margin-bottom: 2rem;
	border-collapse: collapse;
}

table.shop_table th,
table.shop_table td {
	padding: 0.9rem 0.75rem 0.9rem 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}

table.shop_table thead th {
	border-bottom-color: var(--ink);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

table.shop_table .button {
	min-height: 2.5rem;
	padding: 0.5rem 0.9rem;
	font-size: 0.8125rem;
}

@media (max-width: 720px) {
	table.shop_table_responsive thead {
		display: none;
	}

	table.shop_table_responsive tr {
		display: block;
		padding-block: 0.75rem;
		border-bottom: 1px solid var(--line);
	}

	table.shop_table_responsive td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.3rem 0;
		border: 0;
		text-align: right;
	}

	table.shop_table_responsive td::before {
		content: attr(data-title);
		font-weight: 600;
		text-align: left;
	}
}

/* Order confirmation */
.woocommerce-thankyou-order-received {
	font-size: clamp(1.5rem, 2.6vw, 2.25rem);
	font-weight: 800;
	font-stretch: 115%;
	line-height: 1.1;
	text-transform: uppercase;
}

ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem 2rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 1.5rem;
	background: var(--khaki);
}

ul.woocommerce-order-overview li {
	color: var(--stone);
	font-size: 0.875rem;
}

ul.woocommerce-order-overview strong {
	display: block;
	color: var(--ink);
	font-size: 1.0625rem;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
	font-size: 1.6rem;
}

.woocommerce-customer-details address {
	font-style: normal;
}

.woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2rem;
}

/* 7. Account -------------------------------------------------------------- */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	align-items: start;
	gap: 2rem clamp(2rem, 5vw, 4.5rem);
}

@media (max-width: 760px) {
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		grid-template-columns: 1fr;
	}
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	transition: padding 0.25s var(--ease), color 0.2s;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
	padding-left: 0.6rem;
}

.woocommerce-MyAccount-navigation .is-active a {
	border-bottom-color: var(--ink);
	box-shadow: inset 3px 0 0 var(--signal);
}

.woocommerce-account .woocommerce > h2,
.woocommerce-account .u-columns h2 {
	font-size: 1.75rem;
}

.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-ResetPassword {
	--cut: 26px;
	max-width: 480px;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--khaki);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.woocommerce-account .u-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 2.5rem;
}

.woocommerce-form-login__rememberme {
	margin-right: 1rem;
}

.woocommerce-LostPassword {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
}

.woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2rem;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	font-size: 1.5rem;
}

.woocommerce-Address address {
	font-style: normal;
}

/* 8. Cart drawer ---------------------------------------------------------- */
.cart-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(470px, 100vw);
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--bone);
	color: var(--ink);
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.5s var(--ease), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}

.cart-drawer[open] {
	display: flex;
	transform: none;
}

@starting-style {
	.cart-drawer[open] {
		transform: translateX(100%);
	}
}

.cart-drawer::backdrop {
	background: rgba(12, 16, 11, 0);
	transition: background-color 0.5s, overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}

.cart-drawer[open]::backdrop {
	background: rgba(12, 16, 11, 0.62);
}

@starting-style {
	.cart-drawer[open]::backdrop {
		background: rgba(12, 16, 11, 0);
	}
}

.cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.5rem;
	background: var(--night);
	color: var(--bone);
}

.cart-drawer__title {
	margin: 0;
	font-size: 1.25rem;
	font-stretch: 118%;
}

.cart-drawer__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.cart-drawer__close:hover {
	background: rgba(243, 239, 228, 0.12);
}

.cart-drawer .widget_shopping_cart_content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.woocommerce-mini-cart {
	flex: 1;
	list-style: none;
	margin: 0;
	padding: 0 1.5rem;
	overflow-y: auto;
}

.woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	align-content: start;
	gap: 0.15rem 1rem;
	min-height: calc(95px + 2.5rem);
	padding: 1.25rem 2.25rem 1.25rem 0;
	border-bottom: 1px solid var(--line);
}

.woocommerce-mini-cart-item > a:not(.remove) {
	display: contents;
	font-weight: 800;
	font-stretch: 110%;
	line-height: 1.15;
	text-decoration: none;
	text-transform: uppercase;
}

.woocommerce-mini-cart-item img {
	grid-column: 1;
	grid-row: 1 / span 4;
	width: 76px;
	height: 95px;
	object-fit: cover;
	object-position: 50% 15%;
	background: var(--khaki);
}

.woocommerce-mini-cart-item .variation {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.35rem;
	margin: 0;
	color: var(--stone);
	font-size: 0.875rem;
}

.woocommerce-mini-cart-item .variation dd,
.woocommerce-mini-cart-item .variation p {
	margin: 0;
}

.woocommerce-mini-cart-item .quantity {
	color: var(--stone);
	font-size: 0.9375rem;
}

.mini-cart-line {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.6rem;
}

.mini-qty {
	display: inline-flex;
	border: 1px solid rgba(17, 20, 14, 0.3);
	background: var(--white);
}

.mini-qty__btn {
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font-size: 1.125rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s;
}

.mini-qty__btn:hover {
	background: var(--khaki);
}

.mini-qty__input[type="number"] {
	width: 2.5rem;
	padding: 0;
	border: 0;
	background: none;
	font-size: 0.9375rem;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.mini-qty__input:focus {
	box-shadow: none;
}

.mini-qty__input::-webkit-outer-spin-button,
.mini-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.mini-qty__total {
	font-weight: 700;
	white-space: nowrap;
}

/* While a quantity change is being saved. */
.widget_shopping_cart_content.is-updating {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s;
}

.woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 1rem;
	right: -0.4rem;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--stone);
	font-size: 1.5rem;
	line-height: 1;
	text-decoration: none;
}

.woocommerce-mini-cart-item .remove:hover {
	color: var(--danger);
}

.woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 1.1rem 1.5rem 0.4rem;
	border-top: 1px solid var(--ink);
	font-size: 1.25rem;
	font-weight: 800;
	font-stretch: 110%;
	text-transform: uppercase;
}

.woocommerce-mini-cart__buttons {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0.75rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
}

.woocommerce-mini-cart__buttons .checkout {
	min-height: 3.75rem;
	background: var(--signal);
	color: var(--ink);
	font-size: 1rem;
}

.woocommerce-mini-cart__buttons .checkout:hover {
	background: var(--signal-hover);
}

.woocommerce-mini-cart__empty-message {
	margin: 0;
	padding: 3rem 1.5rem;
	color: var(--stone);
	font-size: 1.125rem;
	text-align: center;
}

/* 9. Search overlay -------------------------------------------------------- */
.search-overlay {
	position: fixed;
	inset: 0;
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow-y: auto;
	background:
		linear-gradient(180deg, rgba(12, 16, 11, 0.82), rgba(12, 16, 11, 0.9)),
		var(--night) var(--camo-dark) 0 0 / var(--camo-size);
	color: var(--bone);
	opacity: 0;
	transition: opacity 0.3s, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

.search-overlay[open] {
	opacity: 1;
}

@starting-style {
	.search-overlay[open] {
		opacity: 0;
	}
}

.search-overlay::backdrop {
	background: var(--night);
}

.search-overlay__inner {
	padding-block: clamp(1rem, 2.5vw, 1.75rem) 4rem;
}

.search-overlay__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: clamp(1.5rem, 7vh, 5rem);
}

.search-overlay__label {
	color: var(--sage);
}

.search-overlay__close {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-right: -0.6rem;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.search-overlay__close:hover {
	background: rgba(243, 239, 228, 0.12);
}

input.search-overlay__field {
	padding: 0.25em 0 0.3em;
	border: 0;
	border-bottom: 2px solid rgba(243, 239, 228, 0.35);
	background: none;
	color: var(--bone);
	font-size: clamp(1.6rem, 5.4vw, 4.75rem);
	font-weight: 800;
	font-stretch: 118%;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	caret-color: var(--signal);
}

input.search-overlay__field:focus {
	border-color: var(--signal);
	box-shadow: none;
}

.search-overlay__field::placeholder {
	color: rgba(243, 239, 228, 0.28);
}

.search-overlay__field::-webkit-search-cancel-button {
	display: none;
}

.search-overlay__status {
	min-height: 1.3em;
	margin: 1.25rem 0 1rem;
	color: var(--sage);
}

.search-hits {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-hit {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	height: 100%;
	padding: 0.6rem 1.25rem 0.6rem 0.6rem;
	background: rgba(243, 239, 228, 0.07);
	color: var(--bone);
	text-decoration: none;
	transition: background-color 0.2s;
}

.search-hit:hover,
.search-hit:focus-visible {
	background: rgba(243, 239, 228, 0.16);
	color: var(--bone);
}

.search-hit__media {
	flex: none;
	width: 78px;
	height: 96px;
	overflow: hidden;
	isolation: isolate;
	background: var(--khaki);
}

.search-hit__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 15%;
	mix-blend-mode: multiply;
	filter: brightness(1.1) contrast(1.05);
}

.search-hit__text {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.search-hit__name {
	font-size: 1.0625rem;
	font-weight: 800;
	font-stretch: 110%;
	line-height: 1.1;
	text-transform: uppercase;
}

.search-hit__price {
	color: var(--sage);
	font-size: 0.9375rem;
	font-weight: 600;
}

.search-overlay__all {
	margin-top: 1.75rem;
	color: var(--bone);
}

.search-overlay__none {
	margin: 0;
	color: rgba(243, 239, 228, 0.8);
	font-size: 1.25rem;
}

/* Shown before anything is typed: jump straight to a category. */
.search-overlay__start .label {
	margin-bottom: 0.75rem;
	color: var(--sage);
}

.search-overlay__start ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-overlay__start a {
	display: inline-flex;
	align-items: baseline;
	gap: 0.6rem;
	padding-block: 0.3rem;
	color: var(--bone);
	font-size: clamp(1.4rem, 3.2vw, 2.6rem);
	font-weight: 800;
	font-stretch: 118%;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s, transform 0.3s var(--ease);
}

.search-overlay__start a:hover {
	color: var(--signal);
	transform: translateX(0.4rem);
}

.search-overlay__start small {
	color: var(--sage);
	font-size: 0.8125rem;
	font-weight: 600;
	font-stretch: 100%;
	letter-spacing: 0.1em;
}

/* 10. Checkout ------------------------------------------------------------- */
/*
 * Layout comes from inc/checkout.php: .co-main (steps 1–3) on the left and
 * .co-summary (the order) on the right; on small screens the summary moves to
 * the top and collapses behind a button showing the total.
 */
.site-header--checkout {
	position: static;
}

.site-header--checkout .site-header__inner {
	justify-content: space-between;
}

.link-back {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	color: var(--bone);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
}

.link-back .icon {
	transform: scaleX(-1);
	transition: transform 0.35s var(--ease);
}

.link-back:hover {
	color: var(--signal);
}

.link-back:hover .icon {
	transform: scaleX(-1) translateX(4px);
}

.site-footer--checkout .site-footer__bottom {
	border-top: 0;
	padding-block: 1.5rem;
}

.site-footer__inline-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__inline-menu a {
	color: inherit;
}

.woocommerce-checkout .site-main {
	padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(3rem, 7vw, 6rem);
}

.co-title {
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
	font-size: clamp(2.25rem, 5vw, 4rem);
	font-stretch: 122%;
	line-height: 0.95;
}

form.woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	align-items: start;
	gap: 2rem clamp(2rem, 5vw, 5.5rem);
}

form.woocommerce-checkout > .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

form.woocommerce-checkout > .woocommerce-NoticeGroup .woocommerce-error {
	margin-bottom: 0;
}

.co-hidden,
.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3,
.woocommerce-shipping-fields:empty {
	display: none !important;
}

/* Steps */
.co-step__head {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 1.4rem;
}

.co-step__head:not(:first-child) {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	padding-top: clamp(1.75rem, 3vw, 2.5rem);
	border-top: 1px solid var(--line);
}

.co-step__num {
	--cut: 7px;
	flex: none;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--ink);
	color: var(--bone);
	font-size: 1rem;
	font-weight: 800;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* (.co-step__head prefix: page content styles its h2 more generally.) */
.co-step__head .co-step__title {
	margin: 0;
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	font-stretch: 112%;
}

/* Fields */
#customer_details .col-1,
#customer_details .col-2 {
	width: auto;
	float: none;
}

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

.woocommerce-billing-fields__field-wrapper .form-row {
	display: block;
	width: auto;
	margin: 0;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

/* WooCommerce's script re-marks the phone row as "wide"; keep it beside e-mail. */
.woocommerce-billing-fields__field-wrapper #billing_phone_field {
	grid-column: auto;
}

.woocommerce-checkout .form-row label {
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.woocommerce-checkout .form-row .optional {
	color: var(--stone);
	font-weight: 400;
}

.woocommerce-checkout .input-text {
	min-height: 3.4rem;
	font-size: 1.0625rem;
}

.woocommerce-checkout textarea.input-text {
	min-height: 5.5rem;
	padding-top: 0.9rem;
}

.woocommerce-additional-fields {
	margin-top: 1rem;
}

.woocommerce-additional-fields .form-row {
	margin: 0;
}

.woocommerce-checkout .woocommerce-validated .input-text {
	border-color: var(--success);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d6b38' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	background-position: right 0.9rem center;
	background-size: 18px;
	background-repeat: no-repeat;
	padding-right: 2.75rem;
}

.woocommerce-checkout .woocommerce-invalid .input-text {
	border-color: var(--danger);
	box-shadow: inset 0 0 0 1px var(--danger);
}

.checkout-inline-error-message {
	margin: 0.4rem 0 0;
	color: var(--danger);
	font-size: 0.875rem;
	font-weight: 500;
}

/* Choices: delivery and payment methods as selectable rows */
.co-shipping table,
.co-shipping tbody,
.co-shipping tr,
.co-shipping td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
}

.co-shipping th {
	display: none;
}

.co-shipping ul,
ul.wc_payment_methods {
	display: grid;
	/* minmax(0, …): a long line inside a row (a parcel machine's address)
	   must not widen the column past the screen. */
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.co-shipping li,
.wc_payment_method {
	position: relative;
	margin: 0;
	border: 1px solid rgba(17, 20, 14, 0.28);
	background: var(--white);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.co-shipping li:hover,
.wc_payment_method:hover {
	border-color: var(--ink);
}

.co-shipping li:has(input:checked),
.co-shipping li:has(input[type="hidden"]),
.wc_payment_method:has(> input:checked) {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink), inset 4px 0 0 var(--signal);
}

.co-shipping li > label,
.wc_payment_method > label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.75rem;
	margin: 0;
	padding: 0.9rem 1.25rem 0.9rem 3.4rem;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.co-option__price {
	font-weight: 700;
	white-space: nowrap;
}

/* Square radio buttons to match the rest of the shop */
.co-shipping input[type="radio"],
.wc_payment_method > input[type="radio"],
.woocommerce-checkout input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 1.3rem;
	height: 1.3rem;
	margin: 0;
	border: 2px solid var(--ink);
	background: var(--white);
	cursor: pointer;
}

.co-shipping input[type="radio"],
.wc_payment_method > input[type="radio"] {
	position: absolute;
	top: 1.225rem;
	left: 1.25rem;
}

.co-shipping input[type="radio"]:checked,
.wc_payment_method > input[type="radio"]:checked {
	background: var(--signal);
	box-shadow: inset 0 0 0 3px var(--white);
}

.woocommerce-checkout input[type="checkbox"]:checked {
	background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3efe4' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.payment_box {
	padding: 0 1.25rem 1.1rem 3.4rem;
	color: var(--stone);
	font-size: 0.9688rem;
}

.payment_box p:last-child {
	margin-bottom: 0;
}

/* One payment method: WooCommerce hides its radio, so drop the gutter. */
.wc_payment_method:only-child > label,
.wc_payment_method:only-child > .payment_box {
	padding-left: 1.4rem;
}

.wc_payment_method img {
	max-height: 28px;
	width: auto;
}

/*
 * MakeCommerce: bank and card logos as tiles, and the parcel machine list.
 * The plugin's own Bootstrap styles are not loaded (inc/checkout.php), so the
 * few layout classes its markup relies on are covered here.
 */
.wc_payment_method > label img[src$="/mc.svg"] {
	display: none;
}

.makecommerce-payment-methods .d-none,
.makecommerce-picker > .mb-3 {
	/* hidden method select; country switch (the shop delivers in Estonia only) */
	display: none !important;
}

.makecommerce-picker {
	container-type: inline-size;
	padding-top: 0.15rem;
}

.makecommerce_country_methods > .d-flex {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.25rem 0 0.6rem;
	color: var(--stone);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.makecommerce_country_methods > .d-flex:first-child {
	margin-top: 0.35rem;
}

.makecommerce_country_methods .border-top {
	flex: 1;
	height: 1px;
	background: var(--line);
}

.makecommerce_country_methods > .row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

@container (min-width: 540px) {
	.makecommerce_country_methods > .row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.makecommerce-payment-methods .payment-method {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 3.5rem !important;
	border: 1px solid rgba(17, 20, 14, 0.22);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.makecommerce-payment-methods .payment-method:hover {
	border-color: var(--ink);
}

.makecommerce-payment-methods .payment-method-selected {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink), inset 0 -4px 0 var(--signal);
}

.makecommerce-payment-methods .payment-method:has(input:focus-visible) {
	outline: 2px solid var(--signal);
	outline-offset: 2px;
}

.makecommerce-payment-methods .btn-check {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	clip-path: inset(50%);
	pointer-events: none;
}

.makecommerce-payment-methods .check {
	display: none;
}

.makecommerce-payment-methods .payment-method-selected > .check {
	display: block;
	position: absolute;
	top: -1px;
	right: -1px;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf9f3' stroke-width='3.4' stroke-linecap='square'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.makecommerce-payment-methods .payment-control {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 0.75rem;
	cursor: pointer;
}

.makecommerce-payment-methods .mc-payment-logo {
	width: auto;
	max-width: 100%;
	height: 26px;
	max-height: 26px;
	object-fit: contain;
}

.makecommerce-payment-methods .no-methods {
	margin: 0.75rem 0 0;
}

/* Parcel machine list under the chosen parcel machine option */
.co-pickup {
	padding: 0 1.25rem 1.1rem 3.4rem;
}

.co-pickup .mcSelectContainer {
	max-width: none !important;
	padding: 0 !important;
}

.co-pickup select {
	width: 100%;
}

.co-pickup .select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	height: auto;
	min-height: 3.25rem;
	border: 1px solid rgba(17, 20, 14, 0.4);
	border-radius: 0;
	background: #fff;
}

.co-pickup .select2-container--default.select2-container--open .select2-selection--single,
.co-pickup .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}

/* The chosen machine wraps onto a second line instead of running off the
   field, so the whole address stays readable on a phone. */
.co-pickup .select2-container--default .select2-selection--single .select2-selection__rendered {
	flex: 1;
	min-width: 0;
	padding: 0.7rem 2.75rem 0.7rem 1rem;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
	white-space: normal;
}

.co-pickup.is-invalid .select2-container--default .select2-selection--single,
.co-pickup.is-invalid select {
	border-color: var(--danger);
	box-shadow: inset 0 0 0 1px var(--danger);
}

.co-pickup .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: var(--stone);
}

.co-pickup .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 0;
	width: 2.75rem;
	height: 100%;
}

.co-pickup .select2-container--default .select2-selection--single .select2-selection__arrow b {
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	margin: -7px 0 0 -4px;
	border: solid var(--ink);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.co-pickup .select2-container--open .select2-selection__arrow b {
	margin-top: -2px;
	transform: rotate(225deg);
}

/* The open list is placed at the end of <body>, outside the checkout. Select2
   sets its min-width to the field's width; width 0 keeps it exactly that wide
   (MakeCommerce asks for a list as wide as its longest line, which runs off
   the screen on phones). */
.select2-container--default .mcShippingSelectDropdown {
	width: 0 !important;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: var(--white);
	box-shadow: 0 22px 44px -20px rgba(12, 16, 11, 0.5);
	font-family: var(--font);
}

.select2-container--default .mcShippingSelectDropdown .select2-search--dropdown {
	padding: 0.6rem;
}

.select2-container--default .mcShippingSelectDropdown .select2-search__field {
	height: 2.75rem;
	padding: 0 0.85rem;
	border: 1px solid rgba(17, 20, 14, 0.35);
	border-radius: 0;
	font-size: 1rem;
}

.select2-container--default .mcShippingSelectDropdown .select2-search__field:focus {
	border-color: var(--ink);
	outline: none;
}

.select2-container--default .mcShippingSelectDropdown .select2-results > .select2-results__options {
	max-height: min(22rem, 55vh);
}

.select2-container--default .mcShippingSelectDropdown .select2-results__group {
	padding: 0.8rem 0.9rem 0.35rem;
	color: var(--stone);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.select2-container--default .mcShippingSelectDropdown .select2-results__option {
	padding: 0.55rem 0.9rem;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.select2-container--default .mcShippingSelectDropdown .select2-results__option[aria-selected="true"] {
	background: rgba(226, 103, 42, 0.14);
	color: var(--ink);
}

.select2-container--default .mcShippingSelectDropdown .select2-results__option--highlighted[aria-selected] {
	background: var(--ink);
	color: var(--bone);
}

@media (max-width: 520px) {
	.co-pickup {
		padding-left: 1.25rem;
	}
}

/* Terms and the order button */
.place-order {
	margin: 1.75rem 0 0;
}

.woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 1.25rem;
	color: var(--stone);
	font-size: 0.9375rem;
}

.woocommerce-privacy-policy-text p {
	margin-bottom: 0.9rem;
}

.woocommerce-terms-and-conditions-wrapper .form-row {
	margin: 0;
}

.woocommerce-terms-and-conditions-wrapper label.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
}

.woocommerce-terms-and-conditions-wrapper label.checkbox input {
	margin-top: 0.1rem;
}

.woocommerce-terms-and-conditions-wrapper a,
.woocommerce-privacy-policy-text a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--signal);
	text-decoration-thickness: 2px;
}

#place_order {
	--cut: 14px;
	width: 100%;
	min-height: 4.25rem;
	font-size: 1.125rem;
}

.place-order > br,
.place-order > noscript {
	display: none;
}

/* Order summary */
.co-summary {
	--cut: 30px;
	position: sticky;
	top: 1.5rem;
	isolation: isolate;
	padding: clamp(1.25rem, 2.2vw, 2.1rem);
	background: var(--forest) var(--camo-dark) 0 0 / var(--camo-size);
	color: var(--bone);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.co-summary::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(160deg, rgba(12, 16, 11, 0.45), rgba(12, 16, 11, 0.75)), var(--grain);
}

.co-summary__toggle {
	display: none;
}

.co-summary #order_review_heading {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
	font-stretch: 115%;
}

.co-summary .woocommerce-checkout-review-order-table,
.co-summary .woocommerce-checkout-review-order-table tbody,
.co-summary .woocommerce-checkout-review-order-table tfoot,
.co-summary .woocommerce-checkout-review-order-table tr,
.co-summary .woocommerce-checkout-review-order-table th,
.co-summary .woocommerce-checkout-review-order-table td {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
}

.co-summary .woocommerce-checkout-review-order-table thead {
	display: none;
}

.co-summary .woocommerce-checkout-review-order-table tr.cart_item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--line-light);
}

.co-summary .woocommerce-checkout-review-order-table .product-name {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr);
	align-content: start;
	gap: 0.2rem 1rem;
}

.co-item__media {
	grid-row: 1 / span 3;
	width: 68px;
	height: 85px;
	overflow: hidden;
	isolation: isolate;
	background: var(--khaki);
}

.co-item__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 15%;
	mix-blend-mode: multiply;
	filter: brightness(1.1) contrast(1.05);
}

.co-item__name {
	grid-column: 2;
	font-weight: 800;
	font-stretch: 110%;
	line-height: 1.15;
	text-transform: uppercase;
}

.co-summary .woocommerce-checkout-review-order-table .variation {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.35rem;
	margin: 0;
	color: var(--sage);
	font-size: 0.875rem;
}

.co-summary .woocommerce-checkout-review-order-table .variation dd,
.co-summary .woocommerce-checkout-review-order-table .variation p {
	margin: 0;
}

.co-item__controls {
	grid-column: 2;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: 0.5rem;
}

.co-summary .mini-qty {
	border-color: rgba(243, 239, 228, 0.32);
	background: transparent;
}

.co-summary .mini-qty__btn,
.co-summary .mini-qty__input[type="number"] {
	color: var(--bone);
}

.co-summary .mini-qty__btn:hover {
	background: rgba(243, 239, 228, 0.14);
}

.co-item__remove {
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: var(--sage);
	font: inherit;
	font-size: 0.8125rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.co-item__remove:hover {
	color: var(--signal);
}

.co-summary .woocommerce-checkout-review-order-table .product-total {
	font-weight: 700;
	white-space: nowrap;
}

.co-summary .woocommerce-checkout-review-order-table tfoot {
	padding-top: 0.75rem;
}

.co-summary .woocommerce-checkout-review-order-table tfoot tr {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.4rem;
}

.co-summary .woocommerce-checkout-review-order-table tfoot th {
	color: var(--sage);
	font-weight: 500;
}

.co-summary .woocommerce-checkout-review-order-table tfoot th small {
	display: block;
	color: rgba(243, 239, 228, 0.6);
	font-size: 0.8125rem;
}

.co-summary .woocommerce-checkout-review-order-table tfoot td {
	font-weight: 600;
	white-space: nowrap;
}

.co-summary .woocommerce-checkout-review-order-table tfoot tr.order-total {
	margin-top: 0.6rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bone);
}

.co-summary .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.co-summary .woocommerce-checkout-review-order-table tfoot tr.order-total td {
	color: var(--bone);
	font-size: clamp(1.4rem, 2.2vw, 1.75rem);
	font-weight: 800;
	font-stretch: 112%;
	text-transform: uppercase;
}

.co-summary .product-usps {
	margin-top: 1.5rem;
	padding: 1.25rem 0 0;
	border-bottom: 0;
}

.co-summary .product-usps li {
	margin: 0;
}

/* While totals are being recalculated (WooCommerce's overlay, toned down). */
.woocommerce-checkout .blockUI.blockOverlay {
	background: transparent !important;
}

.woocommerce-checkout .processing,
.co-summary.is-updating .woocommerce-checkout-review-order-table {
	opacity: 0.55;
	transition: opacity 0.2s;
}

@media (max-width: 900px) {
	form.woocommerce-checkout {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
	}

	form.woocommerce-checkout > .woocommerce-NoticeGroup {
		order: -2;
	}

	.co-summary {
		--cut: 18px;
		position: static;
		order: -1;
		padding: 0;
	}

	.co-summary__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		width: 100%;
		min-height: 3.75rem;
		padding: 0.75rem 1.25rem;
		border: 0;
		background: none;
		color: inherit;
		font: inherit;
		cursor: pointer;
	}

	.co-summary__toggle-label {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		font-size: 0.9375rem;
		font-weight: 600;
	}

	.co-summary__toggle-label .icon-chevron {
		transition: transform 0.3s var(--ease);
	}

	.co-summary__toggle[aria-expanded="true"] .icon-chevron {
		transform: rotate(180deg);
	}

	.co-summary__toggle-total {
		font-size: 1.25rem;
		font-weight: 800;
		font-stretch: 110%;
	}

	.co-summary__body {
		display: none;
		padding: 0.25rem 1.25rem 1.25rem;
	}

	.co-summary.is-open .co-summary__body {
		display: block;
	}

	#order_review_heading,
	.co-summary .product-usps {
		display: none;
	}
}

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

/* Cut-outs on the product stage and in the shop bands get a soft shadow, so
   they stand on the backdrop instead of floating. */
.woocommerce-product-gallery__image img.is-cutout.is-cutout.is-cutout,
.shop-band__media img.is-cutout.is-cutout.is-cutout {
	filter: drop-shadow(0 22px 26px rgba(17, 20, 14, 0.22));
}

/* Breathing room around cut-outs fitted into tiles and thumbnails. */
.product-card__link img.is-cutout.is-cutout.is-cutout {
	padding: 7% 10% 6%;
}

.menu-thumb img.is-cutout.is-cutout.is-cutout,
.search-hit__media img.is-cutout.is-cutout.is-cutout,
.co-item__media img.is-cutout.is-cutout.is-cutout,
.woocommerce-mini-cart-item img.is-cutout.is-cutout.is-cutout,
.swatch--image img.is-cutout.is-cutout.is-cutout,
.woocommerce-product-gallery .flex-control-thumbs img.is-cutout.is-cutout.is-cutout {
	padding: 7%;
	background: var(--khaki);
}

/* Product gallery: the thumbnail column gets its own lane, so a wide photo
   never runs underneath it. */
@media (min-width: 901px) {
	.woocommerce-product-gallery:has(.flex-control-thumbs) {
		padding-left: 84px;
	}
}

/* A photo on a dark backdrop sits on the stage as a framed print, cut at the
   corners like the rest of the shop. */
.woocommerce-product-gallery__image img.is-dark-photo.is-dark-photo.is-dark-photo {
	--cut: 26px;
	max-height: clamp(320px, 62svh, 700px);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.product-card__link img.is-dark-photo.is-dark-photo.is-dark-photo {
	object-fit: cover;
}
