/* ==========================================================================
   Back Monday · shop.css
   Product card (global), shop archive, single product, cart/checkout/account.
   Woo's own CSS stays loaded; selectors here are prefixed (html / main.bm-shop)
   so they win on specificity without !important.
   ========================================================================== */

.bm-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* --------------------------------------------------------------------------
   1. Product card (global: homepage, shop, related). Photo, name, price.
   -------------------------------------------------------------------------- */

.bm-card { position: relative; min-width: 0; }
.bm-card__link { display: block; color: var(--ink); text-decoration: none; text-align: center; }
.bm-card__link:focus-visible { outline: 2px solid var(--sun); outline-offset: 6px; }
.bm-card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	margin-bottom: 14px;
	background: transparent;
	isolation: auto;
}
.bm-card__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: contain;
	/* Mockup backgrounds are ~#E3DCD6; lifting them 7% lands them on the paper (#F3EEE3),
	   and a soft edge fade hides what's left of the photo edge. */
	filter: brightness(1.07);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
	mask-composite: intersect;
	transition: opacity .45s var(--ease, ease), transform .6s var(--ease-out, ease);
}
.bm-card__img--alt { opacity: 0; }
.bm-card__name {
	margin: 0 0 4px;
	font-family: var(--f-mono);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-variation-settings: normal;
}
.bm-card__price {
	display: block;
	font-family: var(--f-display);
	font-size: 15.5px;
	font-weight: 700;
	font-variation-settings: 'wdth' 90;
	letter-spacing: 0;
}
.bm-card__price del { opacity: .45; font-weight: 400; margin-right: 6px; }
.bm-card__price ins { text-decoration: none; }
.bm-card__badge {
	position: absolute; top: 6px; left: 6px; z-index: 2;
	padding: 4px 7px 3px;
	border-radius: 999px;
	background: var(--ink); color: var(--paper);
	font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
}
.bm-card__badge--sun { background: var(--sun); color: var(--ink); }

@media (hover: hover) {
	.bm-card.has-alt .bm-card__link:hover .bm-card__img--main { opacity: 0; }
	.bm-card.has-alt .bm-card__link:hover .bm-card__img--alt { opacity: 1; }
	.bm-card:not(.has-alt) .bm-card__link:hover .bm-card__img--main { transform: scale(1.03); }
	.bm-card__link:hover .bm-card__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
}

/* --------------------------------------------------------------------------
   1b. Shop block: sticky toolbar, pills, grid (bm_shop_grid)
   -------------------------------------------------------------------------- */

.bm-grid-block { position: relative; }
.bm-toolbar {
	position: sticky;
	top: var(--bm-sticky-top, 96px);
	z-index: 20;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 44px;
	margin: 0 calc(var(--gutter) * -1);
	padding: 0 var(--gutter);
	background: var(--paper);
	border-top: 1px solid var(--line, rgba(18,17,16,.16));
	border-bottom: 1px solid var(--line, rgba(18,17,16,.16));
	font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.bm-toolbar__btn {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 0;
	background: none; border: 0; cursor: pointer;
	font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink);
}
.bm-toolbar__btn:hover { color: var(--sun); }
.bm-toolbar__filter { justify-self: start; }
.bm-toolbar__count { margin: 0; justify-self: center; color: var(--muted); }
.bm-sort { justify-self: end; position: relative; }
.bm-sort__menu {
	position: absolute; right: 0; top: calc(100% + 1px);
	min-width: 200px; margin: 0; padding: 6px 0;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--ink);
	box-shadow: 0 12px 30px -18px rgba(18,17,16,.5);
}
.bm-sort__menu[hidden] { display: none; }
.bm-sort__menu button {
	display: block; width: 100%; padding: 10px 14px;
	background: none; border: 0; text-align: left; cursor: pointer;
	font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink);
}
.bm-sort__menu button:hover,
.bm-sort__menu button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.bm-pills-row {
	display: flex; flex-wrap: wrap; gap: 8px;
	padding: 16px 0 clamp(24px, 3vw, 36px);
}
.bm-chip {
	min-height: 34px; padding: 0 14px;
	border: 1px solid var(--ink); border-radius: 999px;
	background: transparent; color: var(--ink); cursor: pointer;
	font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
	transition: background .25s, color .25s;
}
.bm-chip:hover { background: rgba(18,17,16,.06); }
.bm-chip.is-on { background: var(--ink); color: var(--paper); }

.bm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 12px;
	margin: 0; padding: 0;
	list-style: none;
}
.bm-grid__item { min-width: 0; margin: 0; }
.bm-grid__item[hidden] { display: none; }
.bm-grid__item.is-in { animation: bmGridIn .5s var(--ease-out, ease) both; }
@keyframes bmGridIn { from { opacity: 0; } to { opacity: 1; } }
.bm-grid__empty { padding: 48px 0; text-align: center; font-family: var(--f-serif); font-style: italic; font-size: 22px; }

@media (min-width: 900px) {
	.bm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
}
@media (max-width: 759px) {
	.bm-pills-row { display: none; padding-top: 12px; }
	.bm-grid-block.is-filter-open .bm-pills-row { display: flex; }
	.bm-toolbar { font-size: 11px; }
	.bm-card__name { font-size: 11px; }
	.bm-card__price { font-size: 14px; }
}
@media (min-width: 760px) {
	.bm-toolbar__filter { pointer-events: none; }
	.bm-toolbar__filter [aria-hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-grid__item.is-in { animation: none; }
	.bm-card__img { transition: none; }
}

/* --------------------------------------------------------------------------
   2. Shop wrapper + archive header
   -------------------------------------------------------------------------- */

main.bm-shop {
	padding-top: calc(var(--header-h, 72px) + clamp(28px, 5vw, 64px));
	padding-bottom: clamp(64px, 10vw, 140px);
	min-height: 70vh;
	overflow-x: clip;
}

.bm-crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	margin: 0 0 clamp(20px, 3vw, 36px);
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted);
}
.bm-crumbs a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s; }
.bm-crumbs a:hover { border-color: var(--sun); }
.bm-crumbs__sep { opacity: .4; }

.bm-archive-head { margin: 0 0 clamp(20px, 3vw, 32px); }
.bm-archive-head .eyebrow { margin: 0 0 8px; color: var(--muted); }
.bm-archive-head .eyebrow .serif-i { text-transform: none; letter-spacing: 0; font-size: 15px; }
.bm-archive-head__title {
	margin: 0;
	font-size: clamp(32px, 4.4vw, 60px);
	font-weight: 800;
	font-variation-settings: 'wdth' 75;
	line-height: .9;
	text-transform: uppercase;
	letter-spacing: -.02em;
}

/* --------------------------------------------------------------------------
   3. Woo loop grid (related + upsells on product pages)
   -------------------------------------------------------------------------- */

html .woocommerce ul.products,
html .woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 12px;
	margin: 0 0 clamp(32px, 5vw, 64px);
	padding: 0;
	list-style: none;
	clear: both;
}
html .woocommerce ul.products::before,
html .woocommerce ul.products::after,
html .woocommerce-page ul.products::before,
html .woocommerce-page ul.products::after { display: none; content: none; }
html .woocommerce ul.products li.product,
html .woocommerce-page ul.products li.product { float: none; width: auto; margin: 0; padding: 0; min-width: 0; text-align: center; }
@media (min-width: 900px) {
	html .woocommerce ul.products,
	html .woocommerce-page ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
}

/* --------------------------------------------------------------------------
   4. Single product
   -------------------------------------------------------------------------- */

main.bm-shop div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	column-gap: clamp(28px, 5vw, 96px);
	row-gap: clamp(48px, 8vw, 120px);
	align-items: start;
}
main.bm-shop div.product > * { min-width: 0; }
main.bm-shop div.product div.images,
main.bm-shop div.product div.summary {
	float: none; width: auto; margin: 0;
}
main.bm-shop div.product div.images {
	position: sticky;
	top: calc(var(--header-h, 72px) + 20px);
}
main.bm-shop div.product .woocommerce-tabs,
main.bm-shop div.product section.related,
main.bm-shop div.product section.upsells,
main.bm-shop div.product > .woocommerce-notices-wrapper { grid-column: 1 / -1; }

@media (max-width: 860px) {
	main.bm-shop div.product { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
	main.bm-shop div.product div.images { position: relative; top: 0; }
}

/* Gallery */
main.bm-shop div.product div.images .woocommerce-product-gallery__wrapper { margin: 0; }
main.bm-shop div.product div.images .woocommerce-product-gallery__image img,
main.bm-shop div.product div.images img {
	border-radius: 0;
	background: transparent;
	filter: brightness(1.07);
}
main.bm-shop div.product div.images .flex-viewport { border-radius: 6px; }
main.bm-shop div.product div.images .flex-control-thumbs {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
	margin-top: 12px;
}
main.bm-shop div.product div.images .flex-control-thumbs li { width: auto; float: none; margin: 0; }
main.bm-shop div.product div.images .flex-control-thumbs li img {
	border-radius: 4px; opacity: .45; transition: opacity .3s, transform .3s;
}
main.bm-shop div.product div.images .flex-control-thumbs li img.flex-active,
main.bm-shop div.product div.images .flex-control-thumbs li img:hover { opacity: 1; transform: translateY(-2px); }
main.bm-shop div.product .woocommerce-product-gallery__trigger {
	top: 14px; right: 14px;
	width: 40px; height: 40px;
	background: var(--paper); border: 1px solid var(--ink); border-radius: 999px;
}
main.bm-shop div.product .woocommerce-product-gallery__trigger::before { border-color: var(--ink); top: 11px; left: 11px; }
main.bm-shop div.product .woocommerce-product-gallery__trigger::after { background: var(--ink); top: 23px; left: 23px; }

/* Summary */
main.bm-shop div.product div.summary { padding-top: clamp(0px, 2vw, 24px); }
.bm-single__eyebrow {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
	margin: 0 0 18px;
	font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.bm-single__badge {
	padding: 6px 10px 5px; border-radius: 999px; line-height: 1;
	background: var(--ink); color: var(--paper);
}
.bm-single__badge--sun { background: var(--sun); color: var(--ink); }

main.bm-shop div.product .product_title {
	margin: 0 0 .25em;
	font-family: var(--f-display);
	font-size: clamp(32px, 4vw, 56px);
	font-weight: 800;
	font-variation-settings: 'wdth' 75;
	line-height: .9;
	letter-spacing: -.035em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
html .woocommerce div.product p.price,
html .woocommerce div.product span.price {
	margin: 0 0 22px;
	font-family: var(--f-mono); font-size: 20px; font-weight: 500;
	color: var(--ink);
}
main.bm-shop div.product .woocommerce-product-details__short-description {
	margin: 0 0 28px;
	max-width: 30ch;
	font-family: var(--f-serif); font-style: italic;
	font-size: clamp(24px, 2.4vw, 34px); line-height: 1.08;
}
main.bm-shop div.product .woocommerce-product-details__short-description p { margin: 0; }

/* Variations: label + pills */
html .woocommerce div.product form.cart { margin: 0 0 28px; }
html .woocommerce div.product form.cart .variations { margin: 0 0 18px; border: 0; width: 100%; }
html .woocommerce div.product form.cart .variations tr { display: block; }
html .woocommerce div.product form.cart .variations th,
html .woocommerce div.product form.cart .variations td {
	display: block; padding: 0; border: 0; background: none; line-height: 1.2; text-align: left;
}
html .woocommerce div.product form.cart .variations th.label { margin-bottom: 10px; }
html .woocommerce div.product form.cart .variations label {
	font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
/* Native select (fallback if JS is off) */
html .woocommerce div.product form.cart .variations select {
	appearance: none;
	min-width: 180px; max-width: 100%;
	margin: 0;
	padding: 12px 40px 12px 16px;
	border: 1px solid var(--ink); border-radius: 999px;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23121110'/%3E%3C/svg%3E") no-repeat right 16px center;
	font-family: var(--f-mono); font-size: 14px; color: var(--ink);
}
.bm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-pill {
	min-width: 54px; height: 46px; padding: 0 16px;
	border: 1px solid var(--ink); border-radius: 999px;
	background: transparent; color: var(--ink);
	font-family: var(--f-mono); font-size: 14px; font-weight: 500; letter-spacing: .06em;
	cursor: pointer;
	transition: background .25s, color .25s, transform .25s;
}
.bm-pill:hover { background: var(--paper-2); transform: translateY(-2px); }
.bm-pill.is-on { background: var(--ink); color: var(--paper); }
.bm-pill:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; transform: none; }
.bm-pill:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
html .woocommerce div.product form.cart .reset_variations {
	display: inline-block; margin-top: 10px;
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted);
}
html .woocommerce div.product .woocommerce-variation-availability p.stock,
html .woocommerce div.product p.stock {
	margin: 0 0 14px;
	font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em;
	color: var(--olive);
}
html .woocommerce div.product p.stock.available-on-backorder { color: var(--sun); }
html .woocommerce div.product .woocommerce-variation-price { display: none; }

/* Quantity + add to bag */
html .woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
html .woocommerce div.product form.cart:not(.variations_form) {
	display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
}
html .woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
html .woocommerce .quantity .qty {
	width: 72px; height: 54px;
	border: 1px solid var(--ink); border-radius: 999px;
	background: transparent;
	font-family: var(--f-mono); font-size: 15px; text-align: center; color: var(--ink);
}
html .woocommerce div.product form.cart .button {
	float: none; flex: 1 1 200px;
	height: 54px;
}

/* Sent-from-my-iPhone small print */
.bm-smallprint {
	margin: 4px 0 28px;
	padding: 18px 20px 16px;
	border: 1px solid var(--ink);
	border-radius: 10px;
	background: var(--paper-2);
	font-family: var(--f-mono); font-size: 13px; line-height: 1.55;
}
.bm-smallprint__meta {
	display: flex; flex-wrap: wrap; gap: 2px 16px;
	margin: 0 0 12px; padding-bottom: 10px;
	border-bottom: 1px dashed rgba(18, 17, 16, .35);
	font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.bm-smallprint__list { margin: 0; padding: 0 0 0 1.1em; }
.bm-smallprint__list li { margin: 0 0 4px; }
.bm-smallprint__list li::marker { content: '— '; color: var(--sun); }
.bm-smallprint__sig {
	margin: 12px 0 0;
	font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--muted);
}

main.bm-shop div.product .product_meta {
	font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
main.bm-shop div.product .product_meta > span { display: block; margin-bottom: 4px; }
main.bm-shop div.product .product_meta a { color: var(--ink); }

/* Tabs → a single quiet "The details" block */
html .woocommerce div.product .woocommerce-tabs {
	padding-top: clamp(28px, 4vw, 48px);
	border-top: 1px solid var(--ink);
}
html .woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; gap: 8px; margin: 0 0 24px; padding: 0; overflow: visible;
}
html .woocommerce div.product .woocommerce-tabs ul.tabs::before,
html .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
html .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
html .woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
}
html .woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 0;
	font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink);
}
html .woocommerce div.product .woocommerce-tabs .panel {
	margin: 0; max-width: 62ch;
	font-family: var(--f-display); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45;
	font-variation-settings: 'wdth' 92;
}

/* Related / upsells */
main.bm-shop div.product section.related > h2,
main.bm-shop div.product section.upsells > h2 {
	margin: 0 0 clamp(24px, 3vw, 40px);
	font-family: var(--f-serif); font-style: italic; font-weight: 400;
	font-size: clamp(32px, 4vw, 60px); letter-spacing: -.01em; line-height: 1;
}

/* --------------------------------------------------------------------------
   5. Buttons (classic Woo) — ink pills
   -------------------------------------------------------------------------- */

html .woocommerce a.button,
html .woocommerce button.button,
html .woocommerce input.button,
html .woocommerce #respond input#submit,
html .woocommerce a.button.alt,
html .woocommerce button.button.alt,
html .woocommerce input.button.alt,
html .woocommerce-page a.button,
html .woocommerce-page button.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 16px 26px 15px;
	border: 1px solid var(--ink); border-radius: 999px;
	background: var(--ink); color: var(--paper);
	font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
	text-decoration: none;
	box-shadow: none;
	transition: background .3s, color .3s, border-color .3s, transform .3s;
}
html .woocommerce a.button:hover,
html .woocommerce button.button:hover,
html .woocommerce input.button:hover,
html .woocommerce #respond input#submit:hover,
html .woocommerce a.button.alt:hover,
html .woocommerce button.button.alt:hover,
html .woocommerce input.button.alt:hover {
	background: var(--sun); border-color: var(--sun); color: var(--ink); transform: translateY(-2px);
}
html .woocommerce button.button.alt.disabled,
html .woocommerce button.button.alt:disabled,
html .woocommerce button.button.alt:disabled[disabled],
html .woocommerce button.button:disabled,
html .woocommerce button.button.disabled {
	background: var(--ink); color: var(--paper); border-color: var(--ink);
	opacity: .35; transform: none; cursor: not-allowed;
}
html .woocommerce a.button.loading::after,
html .woocommerce button.button.loading::after { top: auto; right: auto; position: relative; margin-left: 6px; }

/* --------------------------------------------------------------------------
   6. Notices (classic + blocks)
   -------------------------------------------------------------------------- */

html .woocommerce-message,
html .woocommerce-info,
html .woocommerce-error,
html .woocommerce-noreviews,
html p.no-comments {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--ink); border-left: 6px solid var(--olive); border-radius: 8px;
	background: var(--paper-2); color: var(--ink);
	font-family: var(--f-mono); font-size: 13px; line-height: 1.5;
	list-style: none;
}
html .woocommerce-info { border-left-color: var(--sea); }
html .woocommerce-error { border-left-color: var(--sun); }
html .woocommerce-message::before,
html .woocommerce-info::before,
html .woocommerce-error::before { display: none; }
html .woocommerce-message::after,
html .woocommerce-info::after,
html .woocommerce-error::after { display: none; }
html .woocommerce-message .button,
html .woocommerce-info .button,
html .woocommerce-error .button { order: 2; float: none; padding: 11px 18px 10px; font-size: 11px; }
html .woocommerce-message a:not(.button),
html .woocommerce-info a:not(.button) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }

html .wc-block-components-notice-banner {
	border: 1px solid var(--ink); border-radius: 8px;
	background: var(--paper-2); color: var(--ink);
	font-family: var(--f-mono); font-size: 13px;
}
html .wc-block-components-notice-banner.is-success { border-left: 6px solid var(--olive); }
html .wc-block-components-notice-banner.is-info { border-left: 6px solid var(--sea); }
html .wc-block-components-notice-banner.is-error { border-left: 6px solid var(--sun); }
html .wc-block-components-notice-banner > svg { background: var(--ink); fill: var(--paper); }

/* --------------------------------------------------------------------------
   7. Cart + checkout (block-based) and classic fallbacks
   -------------------------------------------------------------------------- */

html .wp-block-woocommerce-cart,
html .wp-block-woocommerce-checkout {
	color: var(--ink);
	font-family: var(--f-display);
	font-variation-settings: 'wdth' 92;
}
html .wp-block-woocommerce-cart .wc-block-components-sidebar,
html .wp-block-woocommerce-checkout .wc-block-components-sidebar {
	padding: clamp(18px, 2.4vw, 28px);
	border: 1px solid var(--ink); border-radius: 12px;
	background: var(--paper-2);
}
@media (max-width: 699px) {
	html .wp-block-woocommerce-cart .wc-block-components-sidebar,
	html .wp-block-woocommerce-checkout .wc-block-components-sidebar { padding: 18px 16px; }
}

/* Headings + labels in mono */
html .wc-block-cart-items th,
html .wc-block-cart .wc-block-cart__totals-title,
html .wc-block-components-checkout-step__title,
html .wc-block-components-title.wc-block-components-title,
html .wc-block-components-checkout-order-summary__title-text,
html .wc-block-components-totals-item__label,
html .wc-block-components-order-summary .wc-block-components-panel__button {
	font-family: var(--f-mono);
	font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink);
}
html .wc-block-components-checkout-step__title { font-size: 13px; }
html .wc-block-components-checkout-step__heading { margin-bottom: 14px; }
html .wc-block-components-checkout-step__description { font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--muted); }
html .wc-block-cart-items { border-color: var(--ink); }
html .wc-block-cart-items td,
html .wc-block-cart-items th { border-color: rgba(18, 17, 16, .2); }
html .wc-block-components-product-name {
	font-family: var(--f-display); font-weight: 750; font-variation-settings: 'wdth' 78;
	font-size: clamp(18px, 1.6vw, 22px); text-transform: uppercase; letter-spacing: -.01em;
	color: var(--ink); text-decoration: none;
}
html .wc-block-components-product-metadata,
html .wc-block-components-product-details { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
html .wc-block-components-product-price,
html .wc-block-components-formatted-money-amount,
html .wc-block-components-totals-item__value { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
html .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
html .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 16px; }
html .wc-block-cart-item__image img,
html .wc-block-components-order-summary-item__image img { border-radius: 4px; background: var(--paper-2); }
html .wc-block-components-order-summary-item__quantity {
	background: var(--ink); color: var(--paper); border-color: var(--paper);
	font-family: var(--f-mono);
}
html .wc-block-components-product-badge {
	border-color: var(--sun); color: var(--ink); background: var(--sun);
	font-family: var(--f-mono); border-radius: 999px; padding: 2px 8px;
}
html .wc-block-components-quantity-selector {
	border: 1px solid var(--ink); border-radius: 999px; overflow: hidden;
}
html .wc-block-components-quantity-selector::after { display: none; }
html .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
html .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	font-family: var(--f-mono); color: var(--ink); background: transparent;
}
html .wc-block-cart-item__remove-link {
	font-family: var(--f-mono); font-size: 11px !important; letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted) !important;
}

/* Block buttons */
html .wc-block-components-button:not(.is-link),
html .wc-block-cart__submit-button,
html .wc-block-components-checkout-place-order-button,
html .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
	min-height: 54px;
	border: 1px solid var(--ink); border-radius: 999px;
	background: var(--ink); color: var(--paper);
	font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
	text-decoration: none;
	box-shadow: none;
	transition: background .3s, color .3s, border-color .3s, transform .3s;
}
html .wc-block-components-button:not(.is-link):hover,
html .wc-block-cart__submit-button:hover,
html .wc-block-components-checkout-place-order-button:hover {
	background: var(--sun); border-color: var(--sun); color: var(--ink); transform: translateY(-2px);
}
html .wc-block-components-button:not(.is-link):disabled { opacity: .4; transform: none; }
html .wc-block-components-button.is-link,
html .wc-block-components-checkout-return-to-cart-button {
	font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}

/* Inputs (blocks) */
html .wc-block-components-text-input input,
html .wc-block-components-text-input textarea,
html .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
html .wc-block-components-form .wc-block-components-text-input input,
html .wc-blocks-components-select .wc-blocks-components-select__select,
html .wc-block-components-textarea {
	border: 1px solid var(--ink);
	border-radius: 10px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-mono);
}
html .wc-block-components-text-input input:focus,
html .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
html .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--sun);
	box-shadow: 0 0 0 1px var(--sun);
	outline: 0;
}
html .wc-block-components-text-input label,
html .wc-block-components-combobox .wc-block-components-combobox-control label,
html .wc-blocks-components-select .wc-blocks-components-select__label {
	font-family: var(--f-mono); color: var(--muted);
}
html .wc-block-components-validation-error p { font-family: var(--f-mono); color: #B4421A; }

/* Radio + checkbox accents */
html .wc-block-components-radio-control__input:checked { border-color: var(--ink); }
html .wc-block-components-radio-control__input:checked::before { background: var(--sun); }
html .wc-block-components-radio-control .wc-block-components-radio-control__label,
html .wc-block-components-radio-control .wc-block-components-radio-control__secondary-label { font-family: var(--f-mono); font-size: 14px; }
html .wc-block-components-radio-control-accordion-option,
html .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
html .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 10px;
}
html .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-color: var(--ink); background: var(--paper); }
html .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--ink); }
html .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--paper); }
html .wc-block-components-checkbox label { font-family: var(--f-mono); font-size: 13px; }

html .wc-block-components-totals-coupon-link,
html .wc-block-components-panel__button { font-family: var(--f-mono); color: var(--ink); }
html .wc-block-components-totals-wrapper { border-color: rgba(18, 17, 16, .2); }

/* Empty cart */
html .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
	font-family: var(--f-serif); font-style: italic; font-weight: 400;
	font-size: clamp(32px, 5vw, 64px); line-height: 1.02; letter-spacing: -.01em;
	max-width: 18ch; margin-inline: auto;
}
html .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::before {
	background: var(--sun);
	mask-image: none; -webkit-mask-image: none;
	width: 64px; height: 64px; border-radius: 50%;
	margin-bottom: 20px;
}
html .wp-block-woocommerce-empty-cart-block .wp-block-heading,
html .wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) {
	font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
html .wp-block-woocommerce-empty-cart-block hr { border-color: var(--ink); opacity: .2; }

/* Order received */
html .woocommerce-order .woocommerce-thankyou-order-received,
html .wc-block-order-confirmation-status h1 {
	font-family: var(--f-serif); font-style: italic; font-weight: 400;
	font-size: clamp(32px, 5vw, 64px); line-height: 1.02;
}
html .woocommerce ul.order_details,
html .wc-block-order-confirmation-summary-list {
	font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}

/* Classic cart table fallback */
html .woocommerce table.shop_table {
	border: 1px solid var(--ink); border-radius: 10px; border-collapse: separate;
	font-family: var(--f-mono); font-size: 14px;
	background: var(--paper);
}
html .woocommerce table.shop_table th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
html .woocommerce table.shop_table td,
html .woocommerce table.shop_table th { border-color: rgba(18, 17, 16, .2); }
html .woocommerce table.shop_table .product-name a { color: var(--ink); font-family: var(--f-display); font-weight: 700; text-transform: uppercase; }
html .woocommerce a.remove { color: var(--sun) !important; }
html .woocommerce a.remove:hover { background: var(--sun); color: var(--ink) !important; }
@media (max-width: 700px) {
	html .woocommerce table.shop_table_responsive thead { display: none; }
	html .woocommerce table.shop_table_responsive tr { display: block; }
	html .woocommerce table.shop_table_responsive tr td { display: block; text-align: right; }
	html .woocommerce table.shop_table_responsive tr td::before { content: attr(data-title) ': '; float: left; font-weight: 500; }
	html .woocommerce table.shop_table_responsive tr td.product-remove::before,
	html .woocommerce table.shop_table_responsive tr td.actions::before { content: none; }
	html .woocommerce table.cart .product-thumbnail { display: none; }
	html .woocommerce table.cart td.actions .coupon { float: none; display: flex; flex-wrap: wrap; gap: 8px; }
	html .woocommerce table.cart td.actions .coupon .input-text { flex: 1 1 140px; width: auto; }
	html .woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; }
}

/* --------------------------------------------------------------------------
   8. Forms (account, login, classic checkout)
   -------------------------------------------------------------------------- */

html .woocommerce form .form-row label,
html .woocommerce-page form .form-row label {
	font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	line-height: 1.6;
}
html .woocommerce form .form-row .input-text,
html .woocommerce form .form-row select,
html .woocommerce-page form .form-row .input-text,
html .woocommerce-page form .form-row select,
html .woocommerce form .form-row textarea {
	padding: 14px 16px;
	border: 1px solid var(--ink); border-radius: 10px;
	background: var(--paper);
	font-family: var(--f-mono); font-size: 15px; color: var(--ink);
	box-shadow: none;
}
html .woocommerce form .form-row .input-text:focus,
html .woocommerce form .form-row select:focus,
html .woocommerce form .form-row textarea:focus { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun); outline: 0; }
html .woocommerce form .form-row .required { color: var(--sun); text-decoration: none; }
html .woocommerce form.login,
html .woocommerce form.register,
html .woocommerce form.checkout_coupon,
html .woocommerce form.lost_reset_password {
	margin: 0 0 32px;
	padding: clamp(20px, 3vw, 36px);
	border: 1px solid var(--ink); border-radius: 12px;
	background: var(--paper-2);
}
html .woocommerce form .woocommerce-form-login__rememberme { font-family: var(--f-mono); font-size: 13px; }
html .woocommerce .woocommerce-LostPassword a,
html .woocommerce .lost_password a { font-family: var(--f-mono); font-size: 12px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
html .woocommerce .col2-set .col-1,
html .woocommerce .col2-set .col-2 { min-width: 0; }
@media (max-width: 768px) {
	html .woocommerce .col2-set .col-1,
	html .woocommerce .col2-set .col-2,
	html .woocommerce-page .col2-set .col-1,
	html .woocommerce-page .col2-set .col-2 { float: none; width: 100%; }
	html .woocommerce form .form-row-first,
	html .woocommerce form .form-row-last { float: none; width: 100%; }
}
html .woocommerce h2,
html .woocommerce-account h2 { text-transform: uppercase; }

/* My account */
html .woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
}
html .woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
html .woocommerce-account .woocommerce > form,
html .woocommerce-account .woocommerce > .u-columns,
html .woocommerce-account .woocommerce > h2 { grid-column: 1 / -1; }
html .woocommerce-account .woocommerce::before,
html .woocommerce-account .woocommerce::after { display: none; }
html .woocommerce-account .woocommerce-MyAccount-navigation,
html .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
html .woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0; padding: 0; list-style: none;
	border-top: 1px solid var(--ink);
}
html .woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--ink); }
html .woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex; justify-content: space-between;
	padding: 14px 4px;
	font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink); text-decoration: none;
	transition: padding .3s, color .3s;
}
html .woocommerce-account .woocommerce-MyAccount-navigation li a::after { content: '→'; opacity: 0; transition: opacity .3s; }
html .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { padding-left: 12px; }
html .woocommerce-account .woocommerce-MyAccount-navigation li a:hover::after,
html .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::after { opacity: 1; }
html .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--sun); }
html .woocommerce-account .woocommerce-MyAccount-content {
	font-family: var(--f-display); font-variation-settings: 'wdth' 92; font-size: 17px; line-height: 1.5;
}
html .woocommerce-account .woocommerce-MyAccount-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
@media (max-width: 760px) {
	html .woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
}

/* Woo's purple and greens, neutralised */
html .woocommerce span.onsale { background: var(--sun); color: var(--ink); font-family: var(--f-mono); }
html .woocommerce .star-rating span::before,
html .woocommerce p.stars a { color: var(--sun); }
html .woocommerce-store-notice,
html p.demo_store { background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
html .woocommerce .blockUI.blockOverlay::before,
html .woocommerce .loader::before { filter: grayscale(1); }

/* WooCommerce's float-layout widths (e.g. .columns-3 li.product { width: 30.75% }) fight the grid: neutralise them for every column count. */
html .woocommerce ul.products[class*="columns-"] li.product,
html .woocommerce-page ul.products[class*="columns-"] li.product,
html ul.products[class*="columns-"] li.product {
	width: auto;
	margin: 0;
	float: none;
	clear: none;
}

/* out of stock block on the product page */
.bm-oos { margin: 28px 0 8px; display: grid; gap: 12px; }
.bm-oos__btn { width: 100%; opacity: .45; cursor: not-allowed; pointer-events: none; }
.bm-oos__note { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.bm-oos__note a { color: var(--ink); }
