/**
 * WooCommerce: product cards, quick add, prices, Mini-Cart drawer.
 * Shop page, product page, cart and checkout styles arrive in phase 3.
 */

/* ===========================================================================
 * Prices. Real sales only: original struck through in Mute, current in Ink.
 * ======================================================================== */

.price del,
.price del .amount {
	color: var(--mute);
	font-weight: 400;
}

.price ins {
	text-decoration: none;
	font-weight: 600;
}

/* ===========================================================================
 * Product grid and card
 * ======================================================================== */

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-l) var(--space-s);
}

/* Two across until desktop, then four. Three would orphan a card on tablets. */
@media (min-width: 1024px) {
	.product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-xl) var(--space-m);
	}
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--paper-raised);
}

.card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity var(--dur-3) var(--ease), transform 600ms var(--ease);
}

.card__img--hover {
	opacity: 0;
}

@media (hover: hover) {
	.card.has-hover-img:hover .card__img--hover {
		opacity: 1;
	}

	.card:hover .card__img {
		transform: scale(1.02);
	}
}

/* Real states only: a real sale, "new" or "back in stock". Never urgency. */
.card__badge {
	position: absolute;
	top: var(--space-2xs);
	left: var(--space-2xs);
	z-index: 1;
	padding: 0.3em 0.6em;
	background: var(--ink);
	color: var(--paper);
	font-size: var(--step--2);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: lowercase;
}

.card__body {
	display: grid;
	gap: var(--space-3xs);
	padding-top: var(--space-xs);
}

.card__name {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-0);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: lowercase;
	text-wrap: balance;
}

.card__name a {
	color: inherit;
	text-decoration: none;
}

.card__name a:hover {
	text-decoration: underline;
}

.card__price {
	font-size: var(--step--1);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.card__price del {
	margin-right: 0.35em;
	color: var(--mute);
	font-weight: 400;
}

.card__price ins {
	text-decoration: none;
}

/* Colour dots */
.swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0 0 0 -7px;
	padding: 0;
	list-style: none;
}

.swatch {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.swatch::before {
	content: '';
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgb(11 11 11 / 0.28);
}

.swatch[aria-pressed='true']::before {
	outline: 1px solid var(--ink);
	outline-offset: 2px;
}

.swatches__more {
	margin-left: 4px;
	color: var(--mute);
	font-size: var(--step--2);
}

/* Add to cart: always visible below the card on touch, on hover on desktop.
   margin-top: auto keeps the buttons in a row level when names wrap differently. */
.card__actions {
	margin-top: auto;
	padding-top: var(--space-xs);
}

.card__add {
	width: 100%;
	min-height: var(--tap);
	padding: 0.7em 1em;
}

@media (hover: hover) and (min-width: 1024px) {
	.card__actions {
		position: absolute;
		inset: 0 0 auto 0;
		z-index: 1;
		display: flex;
		align-items: flex-end;
		aspect-ratio: 4 / 5;
		margin: 0;
		padding: var(--space-2xs);
		pointer-events: none;
		opacity: 0;
		transform: translateY(6px);
		transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
	}

	.card:hover .card__actions,
	.card:focus-within .card__actions {
		opacity: 1;
		transform: none;
	}

	.card__add {
		pointer-events: auto;
	}
}

/* ===========================================================================
 * Quick-add sheet (template-parts/quick-add.php). Native modal <dialog>.
 * Bottom sheet on phones, centred on larger screens.
 * ======================================================================== */

dialog.quick-add {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	max-height: 88dvh;
	margin: auto auto 0;
	padding: var(--space-s) var(--gutter) var(--space-l);
	border: 0;
	background: var(--paper);
	color: var(--ink);
	overflow-y: auto;
}

@media (min-width: 768px) {
	dialog.quick-add {
		margin: auto;
		padding: var(--space-m) var(--space-l) var(--space-l);
	}
}

dialog.quick-add::backdrop {
	background: var(--scrim);
}

dialog.quick-add[open] {
	animation: posers-sheet-up var(--dur-2) var(--ease);
}

@keyframes posers-sheet-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

.quick-add__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	margin-right: calc(var(--space-2xs) * -1);
}

.quick-add__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-1);
	line-height: 1.1;
	text-transform: lowercase;
}

.qa-group {
	margin: var(--space-m) 0 0;
	padding: 0;
	border: 0;
}

/* margin: Blocksy gives every legend margin-left: -15px. */
.qa-group legend {
	margin: 0 0 var(--space-2xs);
	padding: 0;
	color: var(--mute);
	font-size: var(--step--2);
	font-weight: 600;
	letter-spacing: 0.06em;
}

.qa-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
}

.qa-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-width: 52px;
	min-height: var(--tap);
	padding: 0 0.9em;
	border: var(--hairline) solid var(--mute);
	border-radius: var(--radius-0);
	background: transparent;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.qa-option:hover {
	border-color: var(--ink);
}

.qa-option[aria-pressed='true'] {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.qa-option:disabled {
	border-style: dashed;
	color: var(--mute);
	cursor: not-allowed;
}

/* Colours lowercase and sizes six to a row, as on the product page. */
.qa-option:has(.qa-option__dot) {
	text-transform: lowercase;
}

.qa-option:not(:has(.qa-option__dot)) {
	min-width: 48px;
	padding-inline: 0.6em;
}

.qa-option__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgb(11 11 11 / 0.28);
}

.qa-option[aria-pressed='true'] .qa-option__dot {
	box-shadow: 0 0 0 1px var(--paper);
}

.quick-add__status {
	min-height: 1.5em;
	margin: var(--space-s) 0 0;
	font-size: var(--step--1);
	font-weight: 500;
}

.quick-add__submit {
	width: 100%;
	margin-top: var(--space-xs);
}

.quick-add__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.quick-add__more {
	display: inline-block;
	margin-top: var(--space-2xs);
	color: var(--ink);
	font-size: var(--step--1);
}

/* ===========================================================================
 * Mini-Cart drawer: Paper surface, Ink text, square corners.
 * ======================================================================== */

.wc-block-mini-cart__drawer .components-modal__frame,
.wc-block-mini-cart__drawer {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
}

.wc-block-mini-cart__drawer h2,
.wc-block-mini-cart__title {
	font-family: var(--font-display);
	font-weight: 400;
	text-transform: lowercase;
	letter-spacing: var(--tracking-display);
}

.wc-block-components-drawer__screen-overlay {
	background-color: var(--scrim);
}

/* ===========================================================================
 * Shop and category archives (woocommerce/archive-product.php)
 * ======================================================================== */

.shop {
	padding-block: var(--space-xl) var(--section-y);
}

/* The title is screen-reader only, so the head takes space only for a description. */
.shop__head:has(.shop__desc) {
	margin-bottom: var(--space-l);
}

.shop__title {
	margin: 0;
	font-size: var(--step-5);
}

.shop__desc {
	max-width: var(--measure);
	margin-top: var(--space-s);
	color: var(--mute);
}

.shop__desc p {
	margin: 0;
}

.shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-s);
	margin-bottom: var(--space-l);
	padding-block: var(--space-s);
	border-block: var(--hairline) solid var(--line-on-paper);
}

.shop__filter-btn {
	min-height: var(--tap);
	padding: 0 1.1em;
}

.shop__toolbar .woocommerce-result-count,
.shop__toolbar .woocommerce-result-count.ct-hidden-sm {
	display: block;
	margin: 0 auto 0 0;
	color: var(--mute);
	font-size: var(--step--1);
}

.woocommerce-ordering {
	margin: 0;
}

.woocommerce-ordering select {
	min-height: var(--tap);
	padding: 0 2.4em 0 0.9em;
	border: var(--hairline) solid var(--ink);
	border-radius: 0;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7em center / 16px;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

/* Blocksy wraps the default count and ordering here; the theme prints its own. */
.shop .woo-listing-top:empty {
	display: none;
}

.shop__filters {
	display: none;
}

@media (min-width: 1024px) {
	.shop__filter-btn {
		display: none;
	}

	.shop__layout {
		display: grid;
		grid-template-columns: 200px minmax(0, 1fr);
		align-items: start;
		gap: var(--space-2xl);
	}

	.shop__filters {
		position: sticky;
		top: calc(var(--header-h) + var(--space-l));
		display: block;
	}

	.product-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Filter lists (sidebar and mobile drawer) */
.filter-group + .filter-group {
	margin-top: var(--space-l);
}

.filter-group__title {
	margin: 0 0 var(--space-xs);
	color: var(--mute);
	font-family: var(--font-body);
	font-size: var(--step--2);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
}

.filter-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.filter-widget li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2xs);
}

.filter-all,
.filter-widget li > a {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	min-height: 36px;
	color: var(--ink);
	font-size: var(--step--1);
	font-weight: 500;
	text-decoration: none;
	text-transform: lowercase;
}

.filter-all:hover,
.filter-widget li > a:hover {
	text-decoration: underline;
}

.filter-all.is-current,
.filter-widget .current-cat > a,
.filter-widget .chosen > a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.filter-widget .count {
	color: var(--mute);
	font-size: var(--step--2);
}

.filter-swatch {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgb(11 11 11 / 0.28);
}

.filter-widget .chosen .filter-swatch {
	outline: 1px solid currentColor;
	outline-offset: 2px;
}

/* Mobile filter drawer: Ink surface */
.drawer--filters .drawer__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-2);
	text-transform: lowercase;
}

.drawer__filters {
	margin-top: var(--space-m);
}

.drawer .filter-group__title,
.drawer .filter-widget .count {
	color: var(--paper-dim);
}

.drawer .filter-all,
.drawer .filter-widget li > a {
	min-height: var(--tap);
	color: var(--paper);
	font-size: var(--step-0);
}

.drawer .filter-swatch {
	box-shadow: inset 0 0 0 1px rgb(244 242 237 / 0.4);
}

/* Active filter chips */
.active-filters {
	margin-bottom: var(--space-m);
}

.active-filters ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
}

.active-filters li > a {
	min-height: 36px;
	padding: 0 0.8em;
	border: var(--hairline) solid var(--ink);
	font-weight: 600;
}

.active-filters li > a::after {
	content: "\00D7";
	margin-left: 0.2em;
	font-size: 1.2em;
	line-height: 1;
}

/* Pagination */
.woocommerce-pagination {
	margin-top: var(--space-xl);
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

.woocommerce-pagination .page-numbers li {
	border: 0;
}

.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
	display: grid;
	place-items: center;
	min-width: var(--tap);
	height: var(--tap);
	padding: 0 0.6em;
	border: var(--hairline) solid var(--line-on-paper);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-pagination span.page-numbers.current {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.shop__empty {
	padding-block: var(--space-2xl);
}

.shop__empty-title {
	margin: 0 0 var(--space-2xs);
	font-family: var(--font-display);
	font-size: var(--step-3);
	line-height: 1;
}

/* ===========================================================================
 * Product page (woocommerce/content-single-product.php)
 * ======================================================================== */

.pdp {
	padding-top: var(--space-m);
}

.pdp__top {
	display: grid;
	gap: var(--space-l);
}

.pdp__gallery {
	position: relative;
	min-width: 0;
}

@media (min-width: 1024px) {
	.pdp {
		padding-top: var(--space-xl);
	}

	.pdp__top {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: start;
		gap: var(--space-2xl);
	}

	.pdp__gallery {
		position: sticky;
		top: calc(var(--header-h) + var(--space-m));
	}
}

/* WooCommerce gallery (flexslider, zoom, photoswipe). Woo's own CSS is off
   under Blocksy, so the essentials live here. */
.woocommerce-product-gallery {
	position: relative;
	margin: 0;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image {
	position: relative;
	overflow: hidden;
	background: var(--paper-raised);
}

.woocommerce-product-gallery__image a {
	display: block;
}

.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--space-2xs);
	margin: var(--space-2xs) 0 0;
	padding: 0;
	list-style: none;
}

/* Blocksy sizes these list items for its own gallery; let the grid size them. */
.woocommerce-product-gallery .flex-control-thumbs li {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
}

.woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	opacity: 0.5;
	cursor: pointer;
	transition: opacity var(--dur-2) var(--ease);
}

.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
}

/* Full-screen trigger: a plain icon button instead of the emoji. */
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: var(--space-2xs);
	right: var(--space-2xs);
	z-index: 3;
	display: grid;
	place-items: center;
	width: var(--tap);
	height: var(--tap);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
}

.woocommerce-product-gallery__trigger > span {
	display: none;
}

.woocommerce-product-gallery__trigger::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='square'%3E%3Ccircle cx='10.5' cy='10.5' r='6.25'/%3E%3Cpath d='M15.25 15.25 20 20M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='square'%3E%3Ccircle cx='10.5' cy='10.5' r='6.25'/%3E%3Cpath d='M15.25 15.25 20 20M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pdp__gallery .ai-label {
	z-index: 3;
	top: var(--space-2xs);
	bottom: auto;
}

/* Summary */
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45em;
	margin-bottom: var(--space-s);
	color: var(--mute);
	font-size: var(--step--2);
}

.breadcrumb a {
	color: var(--mute);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--ink);
	text-decoration: underline;
}

/* Sized from the summary column, so a long word ("placeholder", "emotionally")
   fits on one line instead of breaking mid-word. */
.pdp__summary {
	container-type: inline-size;
}

.pdp__title {
	margin: 0 0 var(--space-s);
	font-size: clamp(1.75rem, 9cqi, var(--step-3));
	overflow-wrap: normal;
	word-break: normal;
	text-wrap: balance;
}

.pdp__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
	font-size: var(--step-1);
	font-weight: 600;
}

.pdp__price .price {
	margin: 0;
}

.pdp__price del {
	margin-right: 0.3em;
}

.pdp__badge {
	padding: 0.3em 0.6em;
	background: var(--ink);
	color: var(--paper);
	font-size: var(--step--2);
	font-weight: 600;
	line-height: 1.2;
}

.pdp__tax {
	margin: var(--space-3xs) 0 var(--space-m);
	color: var(--mute);
	font-size: var(--step--2);
}

.pdp__excerpt {
	margin-bottom: var(--space-m);
}

.pdp__excerpt p {
	margin: 0;
}

.pdp__size-guide {
	display: block;
	margin: 0 0 var(--space-2xs) auto;
	padding: var(--space-3xs) 0;
	border: 0;
	background: none;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

/* Size and colour buttons (main.js turns the Woo selects into these) */
/* Buttons replace the dropdowns only when JavaScript runs; otherwise the
   WooCommerce dropdowns stay and the buttons stay hidden. */
.pdp-pickers {
	display: none;
	gap: var(--space-m);
	margin-bottom: var(--space-m);
}

.js .pdp-pickers {
	display: grid;
}

.js .pdp table.variations {
	display: none;
}

.pdp-picker {
	margin: 0;
	padding: 0;
	border: 0;
}

/* margin: Blocksy gives every legend margin-left: -15px. */
.pdp-picker__legend {
	margin: 0 0 var(--space-2xs);
	padding: 0;
	color: var(--mute);
	font-size: var(--step--2);
	font-weight: 600;
	letter-spacing: 0.06em;
}

.pdp-picker__options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
}

.pdp-option {
	position: relative;
	cursor: pointer;
}

.pdp-option__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.pdp-option__face {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-width: 52px;
	min-height: var(--tap);
	padding: 0 0.9em;
	border: var(--hairline) solid var(--mute);
	color: var(--ink);
	font-size: var(--step--1);
	font-weight: 600;
	line-height: 1;
}

.pdp-picker--colour .pdp-option__face {
	text-transform: lowercase;
}

/* Six sizes (XS to 2XL) on one row down to a 360px phone: 6 x 48 + 5 gaps. */
.pdp-picker:not(.pdp-picker--colour) .pdp-option__face {
	min-width: 48px;
	padding-inline: 0.6em;
}

.pdp-option:hover .pdp-option__face {
	border-color: var(--ink);
}

.pdp-option__input:checked + .pdp-option__face {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.pdp-option__input:focus-visible + .pdp-option__face {
	outline: var(--focus-width) solid var(--ink);
	outline-offset: var(--focus-offset);
}

.pdp-option__input:disabled + .pdp-option__face {
	border-style: dashed;
	color: var(--mute);
	cursor: not-allowed;
}

.pdp-option__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgb(11 11 11 / 0.28);
}

.pdp-option__input:checked + .pdp-option__face .pdp-option__dot {
	box-shadow: 0 0 0 1px var(--paper);
}

/* Add to cart row: quantity and the page's one Signal button */
.pdp .variations_form .single_variation_wrap,
.pdp form.cart {
	margin: 0;
}

.pdp .woocommerce-variation-price,
.pdp .woocommerce-variation-availability {
	margin-bottom: var(--space-2xs);
}

.pdp .woocommerce-variation-add-to-cart,
.pdp form.cart:not(.variations_form) {
	display: flex;
	align-items: stretch;
	gap: var(--space-2xs);
}

.pdp .quantity {
	display: flex;
	margin: 0;
}

.pdp .quantity input.qty {
	width: 4.5rem;
	min-height: 52px;
	padding: 0;
	border: var(--hairline) solid var(--ink);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 600;
	text-align: center;
}

.pdp form.cart .single_add_to_cart_button {
	flex: 1;
	min-height: 52px;
	padding: 0 1.5em;
	border: 0;
	border-radius: 0;
	background: var(--signal);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: var(--tracking-label);
	text-transform: lowercase;
	cursor: pointer;
	transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}

.pdp form.cart .single_add_to_cart_button:hover:not(.disabled) {
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 var(--ink);
}

/* Before a size is picked the button stays full colour (a faded lime fails
   contrast); pressing it says what is missing instead. */
.pdp form.cart .single_add_to_cart_button.disabled {
	opacity: 1;
}

.pdp .reset_variations {
	display: none;
}

.pdp__status {
	min-height: 1.4em;
	margin: var(--space-2xs) 0 0;
	font-size: var(--step--1);
	font-weight: 500;
}

.pdp__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-m);
	margin: var(--space-s) 0 var(--space-l);
	padding: 0;
	list-style: none;
	font-size: var(--step--1);
}

.pdp__facts li::before {
	content: "\00B7";
	margin-right: 0.5em;
	color: var(--mute);
}

.pdp__block {
	padding-block: var(--space-m);
	border-top: var(--hairline) solid var(--line-on-paper);
}

.pdp__block-title {
	margin: 0 0 var(--space-s);
	font-size: var(--step-1);
	line-height: 1.1;
}

.pdp__block .spec {
	margin: 0;
	border-top: 0;
}

.pdp__block .spec__row:last-child {
	border-bottom: 0;
}

.pdp__print p {
	margin: 0;
}

.pdp__print .pdp__aside {
	margin-top: var(--space-2xs);
	color: var(--mute);
	font-size: var(--step--1);
}

/* Accordions (native details/summary) */
.accordion {
	border-top: var(--hairline) solid var(--ink);
}

.accordion__item {
	border-bottom: var(--hairline) solid var(--line-on-paper);
}

.accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	min-height: 56px;
	font-size: var(--step-0);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.accordion__summary::-webkit-details-marker {
	display: none;
}

.accordion__summary::after {
	content: "+";
	font-size: var(--step-1);
	font-weight: 400;
	line-height: 1;
}

.accordion__item[open] > .accordion__summary::after {
	content: "\2212";
}

.accordion__body {
	padding-bottom: var(--space-m);
	font-size: var(--step--1);
}

.accordion__list {
	display: grid;
	gap: 0.45em;
	margin: 0;
	padding-left: 1.1em;
}

.accordion__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-m);
	margin: var(--space-s) 0 0;
}

.spec--legal {
	margin: 0;
	border-top: 0;
}

.spec--legal .spec__row {
	grid-template-columns: minmax(8rem, 2fr) minmax(0, 3fr);
}

.spec--legal dd {
	font-weight: 400;
}

.prose p {
	margin: 0 0 0.8em;
}

.prose p:last-child {
	margin-bottom: 0;
}

/* Related products */
.related {
	padding-block: var(--section-y);
}

/* ===========================================================================
 * Sheet dialog (size chart). Bottom sheet on phones, centred on larger screens.
 * ======================================================================== */

dialog.sheet {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	max-height: 88dvh;
	margin: auto auto 0;
	padding: var(--space-s) var(--gutter) var(--space-l);
	border: 0;
	background: var(--paper);
	color: var(--ink);
	overflow-y: auto;
}

@media (min-width: 768px) {
	dialog.sheet {
		margin: auto;
		padding: var(--space-m) var(--space-l) var(--space-l);
	}
}

dialog.sheet::backdrop {
	background: var(--scrim);
}

dialog.sheet[open] {
	animation: posers-sheet-up var(--dur-2) var(--ease);
}

.sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-right: calc(var(--space-2xs) * -1);
}

.sheet__title {
	margin: 0;
	font-size: var(--step-2);
}

.size-chart__lede {
	margin: var(--space-2xs) 0 0;
	color: var(--mute);
	font-size: var(--step--1);
}

.size-chart__table {
	width: 100%;
	margin-top: var(--space-m);
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.size-chart__table th,
.size-chart__table td {
	padding: 0.75em 0.5em;
	border-bottom: var(--hairline) solid var(--line-on-paper);
	text-align: left;
}

.size-chart__table thead th {
	color: var(--mute);
	font-size: var(--step--2);
	font-weight: 600;
}

.size-chart__table tbody th {
	font-weight: 700;
}

.size-chart__note {
	margin: var(--space-m) 0 0;
	color: var(--mute);
	font-size: var(--step--1);
}

/* ===========================================================================
 * Cart and checkout (classic pages; Blocksy provides the base layout)
 * Lowercase button labels; the page's one Signal button is the step forward:
 * "proceed to checkout" on the cart, "place order" on checkout.
 * ======================================================================== */

.woocommerce-cart .shop_table thead th,
.woocommerce-checkout .shop_table thead th {
	text-transform: lowercase;
}

/* The terms link loses its underline; match the privacy policy link above it. */
.woocommerce-checkout .woocommerce-terms-and-conditions-link {
	text-decoration: underline;
}

/* The link opens the terms in a scroll box above the tick box (Woo's own CSS
   is off under Blocksy): give it an edge and keep the page's headings small. */
.woocommerce-checkout .woocommerce-terms-and-conditions {
	margin-bottom: var(--space-s);
	padding: var(--space-xs) var(--space-s);
	border: var(--hairline) solid var(--line-on-paper);
	font-size: var(--step--1);
}

.woocommerce-checkout .woocommerce-terms-and-conditions :is(h1, h2, h3, h4) {
	margin: var(--space-s) 0 var(--space-3xs);
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 700;
	line-height: var(--leading-tight);
}

.woocommerce-checkout .woocommerce-terms-and-conditions > :first-child {
	margin-top: 0;
}

/* Empty once the "options will be updated" line is dropped (woocommerce-checkout.php). */
.woocommerce-shipping-destination:not(:has(strong)) {
	display: none;
}

.woocommerce-cart-form .button,
.woocommerce-cart .coupon .button,
.woocommerce-checkout .button,
.wc-proceed-to-checkout .checkout-button {
	border-radius: 0;
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: var(--tracking-label);
	text-transform: lowercase;
}

.wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #place_order {
	min-height: 52px;
	background: var(--signal);
	color: var(--ink);
	transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-checkout #place_order:hover:not(:disabled) {
	background: var(--signal);
	color: var(--ink);
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 var(--ink);
}

.woocommerce-checkout #place_order:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* The payment placeholder reads as a marker, not an error. */
.woocommerce-checkout #payment .woocommerce-info {
	font-size: var(--step--1);
}

/* Struck-through prices: full opacity and readable size. Blocksy fades and
   shrinks del, which drops it to 2.6:1. Mute on Paper is 4.56:1. */
.price del,
.card__price del,
.pdp__price del,
.sale-price del {
	opacity: 1;
	color: var(--mute);
	font-size: 0.9em;
}

.price del .amount,
.card__price del .amount,
.sale-price del .amount {
	color: inherit;
	font-size: inherit;
}

/* Gallery before WooCommerce's slider starts: show only the first image and
   reserve the thumbnail row, so the page does not jump when it initialises.
   Flexslider sets display:block inline on every slide once it runs. */
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
	display: none;
}

.pdp__gallery--thumbs .woocommerce-product-gallery:not(:has(.flex-control-thumbs))::after {
	content: "";
	display: block;
	width: calc((100% - 4 * var(--space-2xs)) / 5);
	aspect-ratio: 1 / 1;
	margin-top: var(--space-2xs);
}

/* Flexslider sets the viewport height inline and, for one painted frame while
   it starts, stacks every slide (measured 1893px instead of 473px), which shoves
   the summary down and back up. Every product image is 4:5, so the viewport is
   fixed at 4:5. !important is needed to beat the inline height the script sets. */
.woocommerce-product-gallery .flex-viewport {
	height: auto !important;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}
