/*
Theme Name: Maison Decker
Author: Maison Decker
Description: Theme for the Maison Decker website: antique and period jewellery, bought and sold in Luxembourg. Works with WooCommerce. Business details are set under Appearance > Customize > Business details.
Version: 1.4.8
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maison-decker
*/

:root {
	--gutter: var(--wp--style--root--padding-left, clamp(1.25rem, 5vw, 3rem));
	/* Header and footer line up with wide blocks: wide size plus the side padding. */
	--frame-width: calc(var(--wp--style--global--wide-size, 76rem) + 2 * var(--gutter));
	--wine: var(--wp--preset--color--wine);
	--wine-deep: var(--wp--preset--color--wine-deep);
	--champagne: var(--wp--preset--color--champagne);
	--line: var(--wp--preset--color--line);
	--muted: var(--wp--preset--color--muted);
	--porcelain: var(--wp--preset--color--porcelain);
	--field-border: #9c8b84;
	--label: 500 0.75rem/1.4 var(--wp--preset--font-family--sans);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 8rem;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-variant-numeric: oldstyle-nums;
}

::selection {
	background: var(--wine);
	color: var(--wp--preset--color--cream);
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

:focus-visible {
	outline: 1px solid var(--wine);
	outline-offset: 3px;
}

h1 em,
h2 em,
h3 em {
	font-style: italic;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0.75rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--wine);
	color: var(--wp--preset--color--cream);
}

.skip-link:focus {
	left: 0.75rem;
}

/* Notice above the header while the site is being prepared */

.preview-notice {
	margin: 0;
	padding: 0.55rem var(--gutter);
	background: var(--wine);
	color: var(--wp--preset--color--cream);
	font: 400 0.8125rem/1.4 var(--wp--preset--font-family--sans);
	letter-spacing: 0.02em;
	text-align: center;
}

/* Header: the name in the middle with the menu beneath it; search on the left, cart and languages at the far right */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--cream);
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

/* On phones the menu takes two lines, too much to keep on screen. */
@media (max-height: 32rem), (max-width: 40rem) {
	.site-header {
		position: static;
	}
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 1rem;
	padding: 1rem clamp(1rem, 2.5vw, 2.5rem) 0.25rem;
}

.site-brand {
	grid-column: 2;
	grid-row: 1;
	text-align: center;
}

.site-tools {
	grid-row: 1;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.site-tools--start {
	grid-column: 1;
	justify-self: start;
}

.site-tools--end {
	grid-column: 3;
	justify-self: end;
}

.wordmark {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	line-height: 1;
}

.wordmark__small {
	font: 500 0.625rem/1 var(--wp--preset--font-family--sans);
	letter-spacing: 0.5em;
	margin-right: -0.5em;
	text-transform: uppercase;
	color: var(--wine);
}

.wordmark__main {
	margin-top: 0.35rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.1rem;
	font-weight: 400;
	letter-spacing: 0.04em;
}

a.wordmark:hover .wordmark__main {
	color: var(--wine);
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	display: block;
	max-height: 4rem;
	width: auto;
	margin: 0 auto;
}

.site-nav {
	grid-column: 1 / -1;
	grid-row: 2;
	margin-top: 0.5rem;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 2.25rem;
}

.site-nav__list a {
	display: block;
	padding: 0.6rem 0.2rem;
	white-space: nowrap;
	font: var(--label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	text-underline-offset: 0.6em;
	text-decoration-thickness: 1px;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-parent > a {
	text-decoration-line: underline;
	text-decoration-color: var(--champagne);
}

/* Search and cart: an icon each, as tall as the language button */

.icon-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	list-style: none;
	cursor: pointer;
}

.icon-button::-webkit-details-marker {
	display: none;
}

.icon-button:hover,
.header-search[open] > .icon-button {
	color: var(--wine);
}

.icon-button__icon {
	width: 1.375rem;
	height: 1.375rem;
}

.cart-link__count {
	position: absolute;
	top: 0.2rem;
	right: 0.1rem;
	min-width: 1rem;
	height: 1rem;
	padding: 0 0.25rem;
	border-radius: 0.5rem;
	background: var(--wine);
	color: var(--wp--preset--color--cream);
	font: 500 0.625rem/1rem var(--wp--preset--font-family--sans);
	text-align: center;
}

.header-search {
	position: relative;
}

.header-search__form {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	z-index: 10;
	display: flex;
	gap: 0.5rem;
	width: min(24rem, calc(100vw - 2rem));
	padding: 0.5rem;
	background: var(--porcelain);
	border: 1px solid var(--line);
	box-shadow: 0 1.5rem 2.5rem -1.75rem rgba(62, 16, 27, 0.45);
}

.header-search__form input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--ink);
	font: 400 1rem/1.4 var(--wp--preset--font-family--sans);
}

.header-search__form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: var(--wine);
	color: var(--wp--preset--color--cream);
	cursor: pointer;
}

.header-search__form button:hover {
	background: var(--wine-deep, var(--wine));
}

/* Language menu: a small button at the far right that opens the list of languages */

.lang-menu {
	position: relative;
}

.lang-menu__button {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.5rem;
	padding: 0 0.4rem;
	font: var(--label);
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--ink);
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.lang-menu__button::-webkit-details-marker {
	display: none;
}

.lang-menu__button::after {
	content: "";
	width: 0.3rem;
	height: 0.3rem;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-0.12rem) rotate(45deg);
	transition: transform 0.2s ease;
}

.lang-menu[open] .lang-menu__button::after {
	transform: translateY(0.08rem) rotate(225deg);
}

.lang-menu__button:hover,
.lang-menu[open] .lang-menu__button {
	color: var(--wine);
}

.lang-menu__list {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	z-index: 10;
	min-width: 9rem;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	background: var(--porcelain);
	border: 1px solid var(--line);
	box-shadow: 0 1.5rem 2.5rem -1.75rem rgba(62, 16, 27, 0.45);
}

.lang-menu__list a {
	display: block;
	padding: 0.45rem 1rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.lang-menu__list a:hover {
	color: var(--wine);
	background: var(--wp--preset--color--cream);
}

.lang-menu__list a[aria-current] {
	color: var(--wine);
}

.lang-menu__list a[aria-current]::after {
	content: "\2713";
	margin-left: 0.5rem;
}

/* Phones: a smaller name, so the icons fit on either side, and a tighter menu */
@media (max-width: 40rem) {
	.site-header__inner {
		column-gap: 0.5rem;
		padding: 0.75rem 0.75rem 0.25rem;
	}

	.wordmark__main {
		font-size: 1.75rem;
	}

	.site-tools {
		gap: 0;
	}

	/* Two by two, so no item is left alone on a second line */
	.site-nav__list {
		display: grid;
		grid-template-columns: repeat(2, max-content);
		justify-content: center;
		gap: 0 2rem;
	}

	.site-nav__list a {
		justify-content: center;
		letter-spacing: 0.14em;
	}
}

/* Content */

.site-main {
	flex: 1 0 auto;
}

.entry,
.listing,
.not-found {
	padding-block: clamp(3rem, 8vw, 6rem);
}

.home .entry {
	padding-block: 0;
}

.entry-header {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.entry-header > * {
	max-width: var(--wp--style--global--wide-size, 76rem);
	margin-inline: auto;
}

.entry-title {
	margin-block: 0;
}

.entry-meta {
	margin-top: 1rem;
	font: var(--label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.entry-header,
.entry-content,
.listing,
.not-found {
	padding-inline: var(--gutter);
}

/* Used only if the layout rules from theme.json are not printed. */
:where(.entry-content) > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--content-size, 42rem);
	margin-inline: auto;
}

:where(.entry-content) > :where(.alignwide) {
	max-width: var(--wp--style--global--wide-size, 76rem);
}

.entry-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

.entry-content > .alignfull:last-child {
	margin-block-end: 0;
}

/*
 * WordPress keeps columns side by side from 782px. On tablets in portrait
 * the split sections are too narrow, so they stack until 1024px.
 */
@media (max-width: 63.99rem) {
	.entry-content .wp-block-columns.alignwide:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--50);
	}

	.entry-content .wp-block-columns.alignwide:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.breadcrumbs {
	margin-bottom: 1.5rem;
	font: var(--label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.6rem;
	color: var(--line);
}

.breadcrumbs a {
	display: inline-block;
	padding-block: 0.4rem;
	color: inherit;
	text-decoration: none;
}

/* On phones the page's own name is left out: it is the title just below, and alone on a line it would start with a slash. */
@media (max-width: 40rem) {
	.breadcrumbs li[aria-current] {
		display: none;
	}
}

.breadcrumbs a:hover {
	color: var(--wine);
}

/* Sections on deep bordeaux, like the lining of a jewellery case */

.has-wine-deep-background-color,
.has-wine-background-color {
	color: var(--wp--preset--color--cream);
}

:is(.has-wine-deep-background-color, .has-wine-background-color) a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--cream);
}

:is(.has-wine-deep-background-color, .has-wine-background-color) :is(.is-style-label, h1 em, h2 em, h3 em) {
	color: var(--champagne);
}

:is(.has-wine-deep-background-color, .has-wine-background-color) .wp-block-button__link:not(.has-background) {
	background: var(--wp--preset--color--cream);
	color: var(--wine-deep);
}

:is(.has-wine-deep-background-color, .has-wine-background-color) .wp-block-button__link:not(.has-background):hover {
	background: var(--champagne);
}

/* Block styles registered in inc/setup.php */

.is-style-label {
	font: var(--label);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wine);
}

/* A caption set like the label under a piece in a sale catalogue. */
.is-style-caption {
	margin-top: 0.85rem;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.04em;
	color: var(--muted);
}

.is-style-caption strong {
	margin-right: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wine);
}

.is-style-caption em {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	color: var(--wp--preset--color--ink);
}

.wp-block-image.is-style-framed img {
	padding: clamp(0.75rem, 2vw, 1.25rem);
	background: var(--porcelain);
	outline: 1px solid var(--champagne);
	outline-offset: -0.5rem;
}

/* An index with dotted leaders, as at the back of a catalogue. */
ul.is-style-index {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.is-style-index > li {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding-block: 0.65rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	line-height: 1.3;
}

ul.is-style-index > li > a {
	order: 1;
	color: inherit;
	text-decoration: none;
}

ul.is-style-index > li > a:hover {
	color: var(--wine);
	text-decoration: underline;
}

ul.is-style-index > li::after {
	content: "";
	order: 2;
	flex: 1;
	min-width: 2rem;
	border-bottom: 1px dotted var(--field-border);
	transform: translateY(-0.3em);
}

ul.is-style-index > li > em {
	order: 3;
	font-size: 0.85em;
	color: var(--wine);
	white-space: nowrap;
}

ol.is-style-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

@media (max-width: 40rem) {
	ol.is-style-steps {
		grid-template-columns: 1fr;
	}
}

ol.is-style-steps > li {
	counter-increment: step;
	margin: 0;
	padding-top: 1.25rem;
	border-top: 1px solid currentColor;
	border-top-color: rgba(217, 191, 154, 0.55);
}

ol.is-style-steps > li::before {
	content: counter(step, lower-roman) ".";
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-style: italic;
	color: var(--champagne);
}

ol.is-style-steps > li strong {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 400;
}

.wp-block-image img {
	display: block;
}

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-details {
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--line);
}

.wp-block-details summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	line-height: 1.3;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	color: var(--wine);
}

.wp-block-details[open] summary::after {
	content: "\2212";
}

/* Forms */

.form__notice {
	margin: 0 0 2rem;
	padding: 1rem 1.25rem;
	background: var(--porcelain);
	border-left: 2px solid var(--wine);
}

.form__notice--error {
	border-left-color: #a23b2a;
}

.form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.75rem 1.5rem;
}

.form__field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.form__field--full,
.form__legend,
.form__privacy {
	grid-column: 1 / -1;
}

.form__grid label {
	font: var(--label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.form__required {
	color: var(--wine);
}

.form__optional {
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--wp--preset--color--muted);
}

.form__grid input,
.form__grid select,
.form__grid textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	font: inherit;
	color: var(--wp--preset--color--ink);
	background: var(--porcelain);
	border: 1px solid var(--field-border);
	border-radius: 0;
}

.form__grid input[type="file"] {
	padding: 0.7rem;
	background: transparent;
	border-style: dashed;
}

.form__grid input:focus,
.form__grid select:focus,
.form__grid textarea:focus {
	border-color: var(--wine);
	outline: 1px solid var(--wine);
	outline-offset: 0;
}

.form__grid textarea {
	min-height: 10rem;
	resize: vertical;
}

.form__hint {
	font-size: var(--wp--preset--font-size--small);
	color: var(--muted);
}

.form__check {
	grid-column: 1 / -1;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.form__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__legend,
.form__privacy {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--muted);
}

.form__submit {
	grid-column: 1 / -1;
	justify-self: start;
	border: 0;
	cursor: pointer;
}

@media (max-width: 40rem) {
	.form__grid {
		grid-template-columns: 1fr;
	}
}

/* Catalogue (WooCommerce) */

.shop {
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}

.shop__inner {
	max-width: var(--wp--style--global--wide-size, 76rem);
	margin: 0 auto;
}

.shop .page-title {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--xx-large);
}

.shop .term-description,
.shop .page-description {
	max-width: 40rem;
	color: var(--muted);
}

/* Catalogue: the filter panel on the left, the pieces on the right */

.catalogue {
	display: grid;
	grid-template-columns: 15.5rem minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
	margin-top: 2rem;
}

.catalogue-panel {
	border-top: 1px solid var(--line);
}

.catalogue-panel__toggle {
	display: none;
	padding-block: 1rem;
	font: var(--label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.catalogue-panel__toggle::-webkit-details-marker {
	display: none;
}

.catalogue-panel__search {
	margin: 1rem 0 0.5rem;
}

.catalogue-panel__search input,
.filter-group__price input {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--field-border);
	border-radius: 0;
	background: var(--porcelain);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}

.filter-group {
	border-bottom: 1px solid var(--line);
}

.filter-group summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 0.9rem;
	font: var(--label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.filter-group summary::-webkit-details-marker {
	display: none;
}

.filter-group summary::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-0.15rem) rotate(45deg);
	transition: transform 0.2s ease;
}

.filter-group[open] summary::after {
	transform: translateY(0.1rem) rotate(225deg);
}

.filter-group ul {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.filter-group label {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding-block: 0.3rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.05rem;
	cursor: pointer;
}

.filter-group input[type="checkbox"] {
	flex: none;
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--wine);
}

.filter-group__count {
	margin-left: auto;
	font: var(--label);
	color: var(--muted);
}

.filter-group__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.9rem;
}

.filter-group__price label {
	flex: 1 1 0;
	padding: 0;
}

.filter-group__note {
	flex-basis: 100%;
	margin: 0.25rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--muted);
}

.catalogue-panel__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.25rem;
	margin: 1.25rem 0 0;
}

.catalogue-panel__actions a {
	white-space: nowrap;
	font: var(--label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wine);
}

@media (max-width: 63.99rem) {
	.catalogue {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
		margin-top: 1rem;
	}

	.catalogue-panel {
		border-bottom: 1px solid var(--line);
	}

	.catalogue-panel__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.catalogue-panel__toggle::after {
		content: "";
		width: 0.4rem;
		height: 0.4rem;
		border-right: 1px solid currentColor;
		border-bottom: 1px solid currentColor;
		transform: translateY(-0.15rem) rotate(45deg);
		transition: transform 0.2s ease;
	}

	.catalogue-panel[open] > .catalogue-panel__toggle::after {
		transform: translateY(0.1rem) rotate(225deg);
	}

	.catalogue-panel__form {
		padding-bottom: 1.25rem;
	}
}

.woocommerce .woocommerce-result-count {
	font: var(--label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.woocommerce .woocommerce-ordering select {
	padding: 0.5rem 0.75rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 0;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
	margin: 0;
	padding: 0;
}

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

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

/* WooCommerce sizes cards with floats and percentages; the grid above replaces that. */
html .woocommerce ul.products[class*="columns-"] li.product,
html .woocommerce-page ul.products[class*="columns-"] li.product,
html .woocommerce ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	text-align: left;
}

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

@media (max-width: 30rem) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 1.05rem;
	}
}

.woocommerce ul.products li.product a {
	color: inherit;
	text-decoration: none;
}

.woocommerce ul.products li.product a img {
	margin: 0 0 1.1rem;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--porcelain);
	transition: opacity 0.3s ease;
}

.woocommerce ul.products li.product a:hover img {
	opacity: 0.88;
}

.piece__number {
	margin: 0 0 0.35rem;
	font: var(--label);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wine);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3rem;
	font-weight: 400;
	line-height: 1.25;
}

.piece__era {
	margin: 0.3rem 0 0;
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	color: var(--muted);
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	display: block;
	margin-top: 0.6rem;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
}

.woocommerce div.product p.price {
	font-size: 1.25rem;
}

/* Price with its marks: "Rare" in gilt, "Popular" in bordeaux, always together on one line */

.piece__price-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 1rem;
	margin-top: 0.6rem;
}

.woocommerce ul.products li.product .piece__price-line .price,
.woocommerce div.product .piece__price-line p.price {
	margin: 0;
}

.piece-marks {
	display: inline-flex;
	gap: 0.9rem;
	white-space: nowrap;
}

.piece-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font: 400 0.8125rem/1.2 var(--wp--preset--font-family--sans);
	letter-spacing: 0.02em;
}

.piece-mark__icon {
	width: 0.8rem;
	height: 0.8rem;
	flex: none;
}

.piece-mark--rare {
	color: #7a5a22;
}

.piece-mark--popular {
	color: var(--wine);
}

.piece__price-note {
	margin: 0.35rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--muted);
}

.piece__sold,
.piece__on-request {
	font: var(--label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.piece__sold {
	color: var(--wp--preset--color--green);
}

.piece__on-request {
	color: var(--wine);
}

.woocommerce span.onsale {
	top: 0.75rem;
	left: 0.75rem;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0.35rem 0.6rem;
	border-radius: 0;
	background: var(--wine);
	font: var(--label);
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.woocommerce nav.woocommerce-pagination ul {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	padding: 0.6rem 0.9rem;
	font-size: 1rem;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: transparent;
	color: var(--wine);
	border-bottom: 1px solid var(--wine);
}

/* Product page */

.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

.woocommerce div.product > * {
	grid-column: 1 / -1;
}

/* WooCommerce floats these at 48%, with selectors that include #content (the id of <main>). */
html .woocommerce #content div.product div.images,
html .woocommerce #content div.product div.summary,
html .woocommerce-page #content div.product div.images,
html .woocommerce-page #content div.product div.summary {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce div.product div.images {
	grid-column: 1;
}

.woocommerce div.product div.summary {
	grid-column: 2;
	position: sticky;
	top: 8rem;
}

@media (max-width: 63.99rem) {
	.woocommerce div.product {
		grid-template-columns: 1fr;
	}

	.woocommerce div.product div.images,
	.woocommerce div.product div.summary {
		grid-column: 1;
		position: static;
	}
}

.woocommerce div.product div.images img {
	background: var(--porcelain);
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	width: auto;
	float: none;
}

.woocommerce div.product .product_title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.12;
}

.woocommerce div.product .piece__era {
	font-size: 1.25rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	margin-top: 1.5rem;
}

.woocommerce div.product form.cart {
	margin: 2rem 0;
}

.woocommerce div.product form.cart .quantity {
	display: none;
}

.piece__details {
	margin-top: 2.5rem;
}

.piece__details-title {
	margin: 0 0 0.75rem;
	font: var(--label);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wine);
}

.woocommerce table.shop_attributes {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	padding: 0.75rem 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: transparent;
	font-style: normal;
	vertical-align: top;
}

.woocommerce table.shop_attributes th {
	width: 38%;
	text-align: left;
	padding-right: 1rem;
	font: var(--label);
	letter-spacing: 0.14em;
	line-height: 1.7;
	text-transform: uppercase;
	color: var(--muted);
}

.woocommerce table.shop_attributes tr:nth-child(even) th,
.woocommerce table.shop_attributes tr:nth-child(even) td {
	background: transparent;
}

.woocommerce table.shop_attributes td p {
	margin: 0;
	padding: 0;
}

.piece__visit {
	margin-top: 1.75rem;
}

.piece__visit a,
.is-style-label a {
	display: inline-block;
	padding-block: 0.45rem;
}

.piece__visit a {
	font: var(--label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wine);
}

.piece__description {
	max-width: 42rem;
	padding-top: clamp(2.5rem, 6vw, 4rem);
}

.woocommerce .related,
.woocommerce .upsells {
	margin-top: clamp(3rem, 7vw, 5rem);
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--line);
}

.woocommerce .related > h2,
.woocommerce .upsells > h2 {
	margin: 0 0 2rem;
	font-size: var(--wp--preset--font-size--large);
}

/* WooCommerce buttons and notices in the house style */

html .woocommerce :is(a, button, input).button,
html .woocommerce :is(a, button, input).button.alt,
html .woocommerce-page :is(a, button, input).button.alt {
	padding: 1rem 2.25rem;
	border-radius: 0;
	background: var(--wine);
	color: var(--wp--preset--color--cream);
	font: 500 0.8125rem/1.2 var(--wp--preset--font-family--sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

html .woocommerce :is(a, button, input).button:hover,
html .woocommerce :is(a, button, input).button.alt:hover,
html .woocommerce-page :is(a, button, input).button.alt:hover {
	background: var(--wine-deep);
	color: var(--wp--preset--color--cream);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--wine);
	background: var(--porcelain);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--wine);
}

/* Listings */

.listing__inner,
.not-found__inner {
	max-width: var(--wp--style--global--content-size, 42rem);
	margin: 0 auto;
}

.listing__item {
	padding-block: 2rem;
	border-bottom: 1px solid var(--line);
}

.listing__item h2 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--large);
}

.listing__item h2 a {
	color: inherit;
	text-decoration: none;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

/* Footer */

.site-footer {
	background: var(--wine-deep);
	color: var(--wp--preset--color--cream);
	font-size: var(--wp--preset--font-size--small);
}

.site-footer a {
	display: inline-block;
	padding-block: 0.2rem;
	color: inherit;
	text-decoration-color: rgba(236, 226, 208, 0.4);
}

.site-footer a:hover {
	color: var(--champagne);
}

.site-footer__inner {
	max-width: var(--frame-width);
	margin: 0 auto;
	padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter) 3rem;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 3rem;
}

@media (max-width: 48rem) {
	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}

.site-footer p {
	margin: 0 0 0.6rem;
}

.wordmark--footer {
	align-items: flex-start;
	margin-bottom: 1rem;
	color: var(--wp--preset--color--cream);
}

.wordmark--footer .wordmark__small {
	color: var(--champagne);
}

.wordmark--footer .wordmark__main {
	font-size: 2.5rem;
}

.site-footer__tagline {
	max-width: 22rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-style: italic;
	color: rgba(236, 226, 208, 0.8);
}

.site-footer__heading {
	margin: 0 0 1rem;
	font: var(--label);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--champagne);
}

.site-footer__legal {
	max-width: var(--frame-width);
	margin: 0 auto;
	padding: 1.5rem var(--gutter) 2.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	border-top: 1px solid rgba(217, 191, 154, 0.25);
	font-size: 0.8125rem;
	color: rgba(236, 226, 208, 0.75);
}

.site-footer__legal p {
	margin: 0;
}

.site-footer__withdraw {
	flex-basis: 100%;
}

.legal-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

/* Touch screens: bigger buttons, and every tap target at least 48 px high */

@media (max-width: 63.99rem), (pointer: coarse) {
	.wp-element-button,
	.wp-block-button__link,
	.form__submit,
	html .woocommerce :is(a, button, input).button,
	html .woocommerce :is(a, button, input).button.alt,
	html .woocommerce-page :is(a, button, input).button.alt,
	.wc-block-components-button:not(.is-link) {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 3.5rem;
		padding: 1rem 1.75rem;
		font-size: 0.875rem;
	}

	.icon-button {
		width: 3rem;
		height: 3rem;
	}

	/* Padding on an inline link widens what a finger can hit without moving the text. */
	.form__privacy a {
		padding-block: 0.8rem;
	}

	.lang-menu__button {
		min-height: 3rem;
		padding-inline: 0.6rem;
	}

	.lang-menu__list a {
		display: flex;
		align-items: center;
		min-height: 3rem;
		padding-block: 0;
	}

	.site-nav__list a,
	.piece__visit a,
	.is-style-label a,
	.filter-group label,
	.filter-group summary,
	.piece__details a,
	.breadcrumbs a,
	.site-footer a,
	a[href^="tel:"],
	a[href^="mailto:"] {
		display: inline-flex;
		align-items: center;
		min-height: 3rem;
		padding-block: 0;
	}

	.filter-group label {
		padding-block: 0;
	}

	ul.is-style-index > li {
		padding-block: 0.1rem;
	}

	ul.is-style-index > li > a {
		padding-block: 0.7rem;
	}

	.woocommerce .woocommerce-ordering select {
		min-height: 3rem;
	}
}

/* On phones, buttons take the whole width, within reach of either thumb. */
@media (max-width: 40rem) {
	.wp-block-button,
	.wp-block-button__link,
	.form__submit,
	.woocommerce div.product form.cart .button {
		width: 100%;
	}

	.form__submit {
		justify-self: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* On a piece's page the catalogue number sits under the title, like the label under a lot. */
.woocommerce div.product .summary .piece__number {
	margin: 0.75rem 0 1.25rem;
	font-size: 0.875rem;
}
