/* Lacer theme styles that theme.json can't express. */

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

/* Nothing may push the page sideways; clip keeps sticky elements working. */
body {
	overflow-x: clip;
}

/* Full-bleed sections sit flush against each other. */
.wp-site-blocks > * + *,
.lacer-main > *,
.lacer-slider > * {
	margin-block-start: 0;
}

:where(a, button, summary, input, select):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* ---------- Header ---------- */

.lacer-header {
	position: relative;
	z-index: 50;
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast);
}

.lacer-header__row > * {
	flex: 1 1 0;
	min-width: 0;
}

.lacer-header__row > .lacer-logo {
	flex: 0 0 auto;
}

.lacer-logo {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.6rem);
	font-weight: 300;
	letter-spacing: 0.45em;
	line-height: 1;
	/* Balance the trailing letter-spacing so the word sits truly centred. */
	margin-right: -0.45em;
}

.lacer-logo a,
.lacer-header a,
.lacer-header .wp-block-search__button,
.lacer-header .wc-block-mini-cart__button,
.lacer-header .wc-block-customer-account__link {
	color: inherit;
	text-decoration: none;
}

.lacer-header .wp-block-search__button,
.lacer-header .wc-block-mini-cart__button {
	padding: 0.35rem;
	border: 0;
	background: transparent;
}

.lacer-header .wp-block-search__button:hover {
	background: transparent;
	color: inherit;
}

.lacer-header svg {
	fill: currentColor;
}

.lacer-header .wc-block-customer-account__account-icon circle,
.lacer-header .wc-block-customer-account__account-icon path {
	stroke: currentColor;
}

.lacer-header .wp-block-search__input {
	color: var(--wp--preset--color--contrast);
}

.lacer-header__nav .wp-block-navigation-item__content {
	padding-block: 0.3rem;
}

.lacer-header__nav .wp-block-navigation__submenu-container {
	min-width: 200px !important;
	padding: 0.6rem 0;
	border: 1px solid var(--wp--preset--color--line) !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.lacer-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.45rem 1.1rem;
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}

/* ---------- Hero slideshow & banners (scenes) ---------- */

.lacer-scene {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: min(88vh, 860px);
	margin: 0 !important;
	padding-block: clamp(4rem, 9vh, 7rem) !important;
	overflow: hidden;
}

.lacer-banner {
	min-height: min(72vh, 680px);
}

.lacer-scene > .lacer-scene__content {
	position: relative;
	z-index: 1;
	width: 100%;
}

.lacer-scene__content > * {
	margin-block: 0;
}

.lacer-scene__kicker {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.lacer-scene__title {
	margin-block: 1rem 2rem !important;
	color: inherit;
	font-size: clamp(2.6rem, 7vw, 6rem);
	letter-spacing: 0.06em;
	line-height: 1;
}

/* Studio: the white product shot melts into the sand background. */
.lacer-scene--studio {
	background-color: var(--wp--preset--color--soft);
	background-blend-mode: multiply;
	color: var(--wp--preset--color--contrast);
}

.lacer-scene--studio .lacer-scene__content > * {
	max-width: 34rem;
}

.lacer-scene--studio .lacer-scene__kicker {
	color: var(--wp--preset--color--accent);
}

/* Photo: full-bleed lifestyle shot, centred white type, soft shade for legibility. */
.lacer-scene--photo {
	color: #FFFFFF;
	text-align: center;
}

.lacer-scene--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(20, 12, 8, 0.15), rgba(20, 12, 8, 0.45));
}

.lacer-scene--photo .lacer-scene__title {
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.lacer-scene--photo .wp-block-buttons {
	justify-content: center;
}

.lacer-btn-light .wp-block-button__link {
	border-color: #FFFFFF;
	background: transparent;
	color: #FFFFFF;
}

.lacer-btn-light .wp-block-button__link:hover {
	background: #FFFFFF;
	color: var(--wp--preset--color--contrast);
}

/* Slideshow mechanics */

.lacer-slider {
	position: relative;
}

.lacer-slider:not(.is-ready) > .lacer-slide + .lacer-slide {
	display: none !important;
}

.lacer-slider.is-ready {
	display: grid;
}

.lacer-slider.is-ready > .lacer-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0.9s ease;
}

.lacer-slider.is-ready > .lacer-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.lacer-slider__controls {
	position: absolute;
	left: 50%;
	bottom: 1.5rem;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	transform: translateX(-50%);
	color: var(--wp--preset--color--contrast);
}

/* Over a photo the controls turn white. */
.lacer-slider:has(.lacer-slide.is-active.lacer-scene--photo) .lacer-slider__controls {
	color: #FFFFFF;
}

.lacer-slider__dot {
	width: clamp(2.5rem, 5vw, 4.5rem);
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.lacer-slider__dot::before {
	content: "";
	display: block;
	height: 2px;
	background: currentColor;
	opacity: 0.3;
	transition: opacity 0.3s ease;
}

.lacer-slider__dot[aria-current="true"]::before {
	opacity: 1;
}

.lacer-slider__arrow {
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.2rem;
	line-height: 1;
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.lacer-slider__arrow:hover {
	opacity: 1;
}

.lacer-slider__toggle {
	margin-left: 0.5rem;
	padding: 0.2rem 0.5rem;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 0.7rem;
	cursor: pointer;
}

@media (max-width: 781px) {
	/* Studio shots sit under the text on narrow screens. */
	.lacer-scene--studio {
		justify-content: flex-start;
		padding-bottom: 62vw !important;
		background-position: 50% 92% !important;
		background-size: 92% auto !important;
	}

	.lacer-scene {
		min-height: 0;
	}

	.lacer-scene--photo {
		min-height: 75vh;
	}
}

/* ---------- Collections ---------- */

.lacer-collection {
	padding-block: var(--wp--preset--spacing--60);
}

.lacer-slider + .lacer-collection {
	border-top: 1px solid var(--wp--preset--color--line);
}

.lacer-section-title {
	margin-bottom: 0;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.08em;
}

.lacer-view-all {
	margin-top: 0.4rem !important;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lacer-view-all a {
	text-underline-offset: 5px;
}

.lacer-collection .lacer-products {
	margin-top: var(--wp--preset--spacing--50);
}

/* Only the row gap: WooCommerce sizes the columns from its own column gap. */
.lacer-products .wc-block-product-template {
	row-gap: 2rem;
}

/* Cards: white tiles that stand out on the ivory page. */
.lacer-products .wc-block-product {
	padding-bottom: 1.25rem;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.lacer-products .wc-block-product:hover {
	border-color: transparent;
	box-shadow: 0 22px 44px -24px rgba(43, 29, 20, 0.45);
}

.lacer-products .wc-block-components-product-image {
	margin-bottom: 0 !important;
	background: var(--wp--preset--color--surface);
	overflow: hidden;
}

/* Tall 4:5 frame. The studio shots are wide with white margins, so they are
   scaled up to fill the frame without cutting the shoe. */
.lacer-products .wc-block-components-product-image img {
	width: 100%;
	aspect-ratio: 4 / 5 !important;
	object-fit: contain !important;
	transform: scale(1.25);
}

.lacer-products .lacer-card-title,
.lacer-products .wc-block-components-product-price {
	padding-inline: 1rem;
}

.lacer-card-title {
	margin: 0.9rem 0 0.15rem !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 400 !important;
	letter-spacing: 0.2em !important;
	line-height: 1.5 !important;
}

.lacer-card-title a {
	color: var(--wp--preset--color--contrast);
}

.lacer-products .wc-block-components-product-price {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small) !important;
}

.wc-block-components-product-price del {
	opacity: 0.6;
}

.wc-block-components-product-price ins {
	text-decoration: none;
}

.wc-block-components-product-sale-badge,
.wc-block-components-sale-badge,
.woocommerce span.onsale {
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--sale) !important;
	color: #FFFFFF !important;
	font-size: 0.7rem !important;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ---------- Banners & about ---------- */

.lacer-about .lacer-section-title {
	margin-bottom: 1rem;
}

/* ---------- Shop pages ---------- */

.lacer-shop-bar {
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
}

.lacer-shop-bar p,
.lacer-shop-bar form {
	margin: 0;
}

.lacer-shop-bar select {
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	background-color: var(--wp--preset--color--base);
	font: inherit;
}

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.single_add_to_cart_button {
	border-radius: 0 !important;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
	padding: 0.3rem 0.7rem;
	text-decoration: none;
}

.wp-block-query-pagination .current {
	border-bottom: 1px solid currentColor;
}

/* ---------- Pages ---------- */

.lacer-card {
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--line);
}

.lacer-card > * {
	margin-top: 0;
}

.wp-block-details summary {
	cursor: pointer;
	color: var(--wp--preset--color--contrast);
	font-weight: 400;
	letter-spacing: 0.05em;
}

.wp-block-details[open] summary {
	margin-bottom: 0.75rem;
}

/* ---------- Footer ---------- */

.lacer-footer__title {
	margin-bottom: 1.1rem;
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.2em;
}

.lacer-footer__links {
	margin-block-end: 0;
	padding: 0;
	list-style: none;
}

.lacer-footer__links li + li {
	margin-top: 0.5rem;
}

.lacer-footer__links a,
.lacer-footer__text {
	color: rgba(246, 241, 234, 0.72) !important;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.lacer-footer__links a:hover {
	color: var(--wp--preset--color--base) !important;
	text-decoration: underline;
}

.lacer-footer__copy {
	padding-top: 1.25rem;
	border-top: 1px solid rgba(246, 241, 234, 0.14);
	color: rgba(246, 241, 234, 0.55);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.15em;
	text-align: center;
}

/* ---------- Product card hover & Quick View ---------- */

.wc-block-components-product-image {
	position: relative;
}

.lacer-hover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: contain;
	background: var(--wp--preset--color--surface);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.wc-block-product:hover .lacer-hover-img,
.wc-block-product:focus-within .lacer-hover-img {
	opacity: 1;
}

/* A slim bar along the bottom edge, inside the white space under the shoe. */
.lacer-quick-view {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 0.55rem 1rem;
	border: 1px solid var(--wp--preset--color--contrast);
	background: rgba(255, 255, 255, 0.95);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.wc-block-product:hover .lacer-quick-view,
.lacer-quick-view:focus-visible {
	opacity: 1;
	transform: none;
}

.lacer-quick-view:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Touch screens have no hover: tapping the card opens the product page. */
@media (hover: none) {
	.lacer-quick-view {
		display: none;
	}
}

.lacer-related .wc-block-components-product-button {
	display: none;
}

.lacer-related h2 {
	margin-bottom: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.08em;
	text-align: center;
}

/* ---------- Dialogs (Quick View, size chart) ---------- */

.lacer-dialog {
	width: min(960px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 0;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	overflow: auto;
}

.lacer-dialog--small {
	width: min(560px, calc(100vw - 2rem));
}

.lacer-dialog::backdrop {
	background: rgba(43, 29, 20, 0.55);
}

.lacer-dialog__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	padding: 0.25rem 0.5rem;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.lacer-dialog__title,
.lacer-qv__title {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: 0.08em;
}

.lacer-dialog__note {
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--small);
}

.lacer-size-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

.lacer-size-table th,
.lacer-size-table td {
	padding: 0.6rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.lacer-size-table th {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	letter-spacing: 0.1em;
}

.lacer-qv__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.lacer-qv__main {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.lacer-qv__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.lacer-qv__thumb {
	width: 64px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
	cursor: pointer;
}

.lacer-qv__thumb.is-active {
	border-color: var(--wp--preset--color--contrast);
}

.lacer-qv__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
}

.lacer-qv__price {
	margin-bottom: 1rem;
	color: var(--wp--preset--color--contrast);
}

.lacer-qv__desc {
	font-size: var(--wp--preset--font-size--small);
}

.lacer-qv__submit {
	width: 100%;
	margin-top: 1rem;
	cursor: pointer;
}

.lacer-qv__error {
	margin: 0.75rem 0 0;
	color: #B3261E;
	font-size: var(--wp--preset--font-size--small);
}

.lacer-qv__error:empty {
	display: none;
}

.lacer-qv__details {
	display: inline-block;
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-underline-offset: 5px;
}

/* ---------- Options: sizes & colours ---------- */

.lacer-option-label {
	margin: 0 0 0.6rem;
	padding: 0;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lacer-option-label strong {
	font-weight: 500;
}

.lacer-sizes {
	margin: 1.25rem 0 0;
	padding: 0;
	border: 0;
}

.lacer-sizes__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lacer-sizes__option span {
	display: grid;
	place-items: center;
	min-width: 3rem;
	height: 3rem;
	padding: 0 0.6rem;
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lacer-sizes__option span:hover {
	border-color: var(--wp--preset--color--contrast);
}

.lacer-sizes__option input:checked + span {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.lacer-sizes__option input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.lacer-colors__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lacer-swatch {
	display: block;
	padding: 3px;
	border: 1px solid transparent;
	border-radius: 50%;
}

.lacer-swatch.is-current,
.lacer-swatch:hover {
	border-color: var(--wp--preset--color--contrast);
}

.lacer-swatch__dot {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 50%;
}

.lacer-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.15em;
	text-decoration: underline;
	text-transform: uppercase;
	text-underline-offset: 4px;
	cursor: pointer;
}

/* ---------- Single product page ---------- */

.lacer-product .woocommerce-breadcrumb {
	margin-bottom: 0;
	letter-spacing: 0.08em;
}

.lacer-product__title {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0.08em;
}

.lacer-product__price {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--large) !important;
}

.lacer-product__summary .lacer-colors {
	margin-top: 1.5rem;
}

.lacer-size-chart-link {
	margin: 1.5rem 0 -0.5rem;
	text-align: right;
}

.lacer-product .variations_form .lacer-sizes {
	margin: 0 0 1.25rem;
}

.lacer-product .variations_form table.variations {
	margin: 0;
}

/* Every size costs the same, so the per-variation price would just repeat. */
.lacer-product .single_variation_wrap .woocommerce-variation-price {
	display: none;
}

.lacer-product .woocommerce-variation-add-to-cart,
.lacer-product form.cart:not(.variations_form) {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.lacer-product .quantity .qty {
	width: 4.5rem;
	height: 100%;
	min-height: 3rem;
	border: 1px solid var(--wp--preset--color--line);
	font: inherit;
	text-align: center;
}

.lacer-product .single_add_to_cart_button {
	flex: 1;
}

.lacer-product__description {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
}

.lacer-product__subhead {
	margin-bottom: 0.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.2em;
}

.lacer-product__meta {
	margin-top: 1.5rem;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.05em;
}

/* Gallery: thumbnails in a column on the left, large photo on the right. */
.lacer-product .woocommerce-product-gallery {
	position: relative;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 0.75rem;
	width: 100% !important;
	float: none !important;
}

.lacer-product .woocommerce-product-gallery .flex-viewport,
.lacer-product .woocommerce-product-gallery__wrapper {
	grid-column: 2;
	grid-row: 1;
}

.lacer-product .woocommerce-product-gallery .flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lacer-product .woocommerce-product-gallery .flex-control-thumbs li {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

.lacer-product .woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	border: 1px solid var(--wp--preset--color--line);
	opacity: 1 !important;
	cursor: pointer;
}

.lacer-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--wp--preset--color--contrast);
}

.lacer-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	border-radius: 0;
}

.lacer-product .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 3;
}

/* Reviews */

.lacer-reviews {
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--60);
	border-top: 1px solid var(--wp--preset--color--line);
}

.lacer-reviews .wc-tabs,
.lacer-reviews .woocommerce-Reviews-title {
	display: none;
}

.lacer-reviews .woocommerce-Reviews {
	max-width: 760px;
	margin: var(--wp--preset--spacing--40) auto 0;
}

.lacer-reviews .woocommerce-noreviews {
	text-align: center;
}

.lacer-reviews #review_form_wrapper {
	margin-top: var(--wp--preset--spacing--40);
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--line);
}

.lacer-reviews .comment-reply-title {
	display: block;
	margin-bottom: 1rem;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lacer-reviews input[type="text"],
.lacer-reviews input[type="email"],
.lacer-reviews textarea {
	width: 100%;
	padding: 0.7rem;
	border: 1px solid var(--wp--preset--color--line);
	font: inherit;
}

.lacer-reviews .stars a {
	color: var(--wp--preset--color--contrast);
}

.lacer-reviews .commentlist {
	padding: 0;
	list-style: none;
}

.lacer-reviews .commentlist li {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

@media (max-width: 781px) {
	.lacer-qv__grid,
	.lacer-product .woocommerce-product-gallery {
		grid-template-columns: minmax(0, 1fr);
	}

	.lacer-product .woocommerce-product-gallery .flex-viewport,
	.lacer-product .woocommerce-product-gallery__wrapper {
		grid-column: 1;
	}

	.lacer-product .woocommerce-product-gallery .flex-control-thumbs {
		grid-column: 1;
		grid-row: 2;
		flex-direction: row;
		overflow-x: auto;
	}

	.lacer-product .woocommerce-product-gallery .flex-control-thumbs li {
		flex: 0 0 72px;
	}
}

/* ---------- Animations ---------- */
/* All of these are switched off by the prefers-reduced-motion rule below. */

@keyframes lacer-fade-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes lacer-fade-down {
	from {
		opacity: 0;
		transform: translateY(-16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* No 'to' frame: it ends on the logo's own spacing, which differs on mobile. */
@keyframes lacer-logo-in {
	from {
		opacity: 0;
		letter-spacing: 0.8em;
	}
}

@keyframes lacer-pop {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes lacer-fade {
	from {
		opacity: 0;
	}
}

/* Header settles in on page load. */
.lacer-header__row {
	animation: lacer-fade-down 0.8s ease both;
}

.lacer-header__nav {
	animation: lacer-fade-down 0.8s 0.15s ease both;
}

.lacer-logo {
	animation: lacer-logo-in 1.1s ease both;
}

/* Menu links: an underline that draws in from the left. */
.lacer-header__nav .wp-block-navigation-item__label {
	padding-bottom: 3px;
	background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
	transition: background-size 0.35s ease;
}

.lacer-header__nav .wp-block-navigation-item__content:hover .wp-block-navigation-item__label,
.lacer-header__nav .wp-block-navigation-item__content:focus-visible .wp-block-navigation-item__label {
	background-size: 100% 1px;
}

.lacer-header__nav .wp-block-navigation__submenu-container {
	animation: lacer-fade 0.25s ease;
}

/* Hero: each slide's text steps in line by line, the photo eases into place. */
.lacer-slide.is-active .lacer-scene__content > * {
	animation: lacer-fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.lacer-slide.is-active .lacer-scene__content > :nth-child(2) {
	animation-delay: 0.15s;
}

.lacer-slide.is-active .lacer-scene__content > :nth-child(3) {
	animation-delay: 0.3s;
}

/* Fade up as it scrolls into view (classes added by shop.js). */
.lacer-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--lacer-delay, 0s);
}

.lacer-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Dialogs open with a soft pop. */
.lacer-dialog[open] {
	animation: lacer-pop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lacer-dialog[open]::backdrop {
	animation: lacer-fade 0.35s ease;
}

/* ---------- Responsive ---------- */

@media (max-width: 781px) {
	/* The menu collapses to a hamburger in the top-left corner, with search beside it. */
	.lacer-header__left {
		padding-left: 2.6rem;
	}

	.lacer-header__nav {
		position: absolute;
		top: 1.1rem;
		left: clamp(1rem, 2.8vw, 2.5rem);
	}

	.lacer-logo {
		letter-spacing: 0.3em;
		margin-right: -0.3em;
	}

	.lacer-products .wc-block-product-template {
		row-gap: 1.75rem;
	}

	.lacer-card-title {
		letter-spacing: 0.12em !important;
	}
}

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