.catalog-quick,
.fdm-pdp {
	--text: var(--wp--preset--color--text);
	--canvas: var(--wp--preset--color--canvas);
	--muted: var(--wp--preset--color--muted);
	--border: var(--wp--preset--color--border);
	--field-border: var(--wp--preset--color--field-border);
	--brand: var(--wp--preset--color--brand);
	--on-brand: var(--wp--preset--color--on-brand);
	--focus: var(--wp--preset--color--focus);
	--sale: var(--wp--preset--color--sale);
	--error: var(--wp--preset--color--error);
	--disabled-surface: var(--wp--preset--color--disabled-surface);
	--body: var(--fdm-body);
	--editorial: var(--fdm-editorial);
	color: var(--text);
	font: 400 15px/1.4 var(--body);
}

.product-gallery {
	--thumb: 72px;
	--edge: 15px;
	--zoom: 44px;
	width: 100%;
	max-width: 612px;
	min-width: 0;
}

.gallery-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 612/600;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--canvas);
}

.gallery-control {
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	color: var(--text);
	background: transparent;
	cursor: pointer;
}

.gallery-control:focus-visible {
	outline-offset: -3px;
}

.gallery-stage > .gallery-control {
	position: absolute;
}

.gallery-image {
	display: block;
	inset: 0;
	width: 100%;
	height: 100%;
}

.gallery-image img,
.gallery-thumbs img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-control.previous,
.gallery-control.next,
.gallery-control.zoom,
.gallery-control.favourite,
.lightbox-close {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.gallery-control.previous,
.gallery-control.next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--wp--preset--color--disabled-surface) 94%, transparent);
}

.gallery-control.previous {
	left: var(--edge);
}

.gallery-control.next {
	right: var(--edge);
}

.gallery-control.zoom {
	right: 12px;
	bottom: 12px;
	width: var(--zoom);
	height: var(--zoom);
	border: 1px solid var(--border);
	background: var(--canvas);
}

.gallery-control.favourite {
	right: var(--edge);
	top: var(--edge);
	background: var(--canvas);
}

.gallery-control.favourite img {
	width: 44px;
	height: 44px;
}

.gallery-thumbs {
	position: relative;
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.gallery-thumbs .thumb {
	width: var(--thumb);
	height: var(--thumb);
	flex: none;
	overflow: hidden;
	position: relative;
	border-radius: 8px;
}

.gallery-thumbs .thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid var(--border);
	border-radius: inherit;
	pointer-events: none;
}

.gallery-thumbs .thumb[aria-pressed="true"]::after {
	border: 2px solid var(--brand);
}

.gallery-caption {
	margin: 8px 0 0;
	color: var(--muted);
	font: 400 13px/20px var(--body);
}

.gallery-placeholder {
	height: 100%;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 8px;
	background: var(--disabled-surface);
	color: var(--muted);
}

.compact .gallery-stage {
	aspect-ratio: 1;
	border: 0;
}

.gallery-lightbox {
	--edge: 16px;
	position: fixed;
	width: fit-content;
	max-width: calc(100vw - 24px);
	max-height: 94dvh;
	padding: 0;
	border: 0;
	margin: auto;
	background: var(--canvas);
	overflow: auto;
}

/* Gallery, dialog and product forms share elements. */
/* stylelint-disable-next-line no-descending-specificity */
.gallery-lightbox > img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(calc(100vw - 24px), 1080px);
	max-height: 81dvh;
	object-fit: contain;
}

.lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--canvas);
}

.lightbox-caption {
	padding: 8px 12px;
	color: var(--muted);
	font-size: 14px;
}

@media (max-width: 760px) {

	.product-gallery {
		--thumb: 56px;
		--edge: 11px;
		--zoom: 48px;
	}

	.gallery-stage {
		aspect-ratio: 1;
	}
}

.catalog-quick {
	position: fixed;
	inset: 0;
	width: 762px;
	max-width: calc(100% - 32px);
	height: fit-content;
	max-height: min(824px, calc(100dvh - 32px));
	padding: 0;
	border: 0;
	border-radius: 16px;
	color: var(--text);
	background: var(--canvas);
	overflow: hidden;
}

.catalog-quick:not([open]) {
	display: none;
}

.catalog-quick::backdrop {
	background: color-mix(in srgb, var(--wp--preset--color--brand) 32%, transparent);
}

html:has(.catalog-quick[open]) {
	overflow: hidden;
}

.quick-scroll {
	overflow: auto;
	overscroll-behavior: contain;
	max-height: min(824px, calc(100dvh - 32px));
}

.quick-body {
	display: grid;
	grid-template-columns: minmax(0, 326fr) minmax(0, 360fr);
	gap: 28px;
	align-items: start;
	padding: 24px;
}

.quick-info {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 16px;
	min-width: 0;
}

.quick-purchase {
	width: 100%;
}

.quick-info h2 {
	font: 600 36px/41px var(--editorial);
	margin: 0;
	padding: 0 36px 0 0;
	overflow-wrap: anywhere;
}

.quick-copy {
	font: 400 14px/normal var(--body);
	color: var(--muted);
	margin: 0;
}

.quick-close {
	--fdm-rest: transparent;
	position: absolute;
	right: 4px;
	top: 4px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--canvas);
	border: 0;
	border-radius: 50%;
	padding: 0;
}
/* stylelint-disable-next-line no-descending-specificity */
.quick-close img {
	display: block;
}

@media (max-width: 760px) {

	.catalog-quick {
		width: 358px;
	}

	.quick-scroll {
		max-height: min(784px, calc(100dvh - 32px));
	}

	.quick-body {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 22px 20px 21px;
	}

	.catalog-quick[open] {
		display: flex;
		flex-direction: column;
		max-height: min(784px, calc(100dvh - 32px));
	}

	.quick-info h2 {
		font-size: 27px;
		line-height: 31px;
		padding-right: 0;
	}

	.quick-purchase .purchase-child > div:first-child {
		min-width: 0;
		overflow-wrap: anywhere;
	}
}

.fdm-pdp {
	box-sizing: content-box;
	max-width: 1250px;
	padding: 42px 32px 72px;
	margin: auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pdp-crumbs {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	font: 600 13px/24px var(--body);
}

.pdp-crumbs a,
.pdp-buy a,
.pdp-related a {
	text-decoration: none;
}

.fdm-pdp a:hover {
	text-decoration: underline;
}

.pdp-grid {
	display: grid;
	grid-template-columns: minmax(0, 612fr) minmax(0, 570fr);
	gap: min(4.723vw, 68px);
	align-items: start;
}

.pdp-buy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	-webkit-font-smoothing: antialiased;
}

.pdp-category {
	color: var(--text);
	font: 600 14px/24px var(--body);
}

.fdm-pdp h1 {
	font: 600 56px/64px var(--editorial);
}

.pdp-short {
	font: 400 15px/24px var(--body);
}

#purchase-host {
	width: 100%;
}

.fdm-pdp .purchase {
	width: 100%;
}

.fdm-pdp .s03-delivery {
	width: 100%;
	min-height: 76px;
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font: 600 14px/20px var(--body);
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px;
	text-decoration: none;
}

.pdp-upsell {
	font: 600 14px/21px var(--body);
}

.pdp-related {
	padding-top: 24px;
}

.pdp-related h2 {
	font: 600 34px/44px var(--editorial);
	margin: 0 0 24px;
}

.pdp-related .home-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.pdp-related .home-card-title,
.pdp-related .price {
	font: 600 16px/22px var(--body);
}

.pdp-related .home-card-media {
	border-radius: 8px;
}

.pdp-related .home-card .home-card-link {
	flex: 0 1 auto;
	gap: 11px;
}

.pdp-related .home-card-actions {
	min-height: 0;
	margin-top: 5px;
}

.pdp-related .home-card-actions .price {
	font: 600 16px/20px var(--body);
}

@media (max-width: 767px) {

	.fdm-pdp {
		padding: 26px 16px 46px;
	}

	.pdp-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.fdm-pdp h1 {
		font-size: 36px;
		line-height: 42px;
	}

	.pdp-related {
		padding-top: 16px;
	}

	.pdp-related h2 {
		font-size: 30px;
		line-height: 36px;
		margin-bottom: 16px;
	}

	.pdp-related .home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.pdp-related .home-card .home-card-link {
		gap: 9px;
	}

	.pdp-related .home-card-title {
		font-size: 14px;
		line-height: 19px;
	}

	.pdp-related .price {
		font-size: 15px;
		line-height: 20px;
	}
}

.fdm-catalog .fdm-pdp {
	width: auto;
	margin: auto;
	box-sizing: content-box;
}

.fdm-pdp .woocommerce-breadcrumb {
	margin: 0;
	color: var(--text);
	font: 600 13px/24px var(--body);
}

.fdm-surface,
.fdm-surface * {
	box-sizing: border-box;
}


.fdm-surface :is(p, figure, h1, h2, fieldset, legend) {
	margin: 0;
}

.fdm-surface .gallery-caption {
	margin: 8px 0 0;
}

/* Gallery, dialog and product forms share elements. */
/* stylelint-disable no-descending-specificity */
/* stylelint-disable no-duplicate-selectors */
.catalog-quick {
	margin: auto;
}
/* stylelint-enable no-descending-specificity */
/* stylelint-enable no-duplicate-selectors */

.fdm-surface .fdm-short {
	font: 400 15px/24px var(--body);
}

.quick-info .fdm-short {
	font: 400 14px/19px var(--body);
	color: var(--muted);
}

.fdm-pdp .pdp-buy h1 {
	font: 600 56px/64px var(--editorial);
}

.fdm-short:empty,
.purchase-feedback:empty,
.purchase-price:empty {
	display: none;
}

.fdm-purchase {
	width: 100%;
	display: grid;
	gap: 14px;
	min-width: 0;
}

.fdm-purchase .purchase-price {
	font: 600 26px/38px var(--body);
}

.fdm-purchase del {
	font: 400 16px/24px var(--body);
	color: var(--muted);
}

.fdm-purchase ins {
	text-decoration: none;
}
/* stylelint-disable-next-line no-descending-specificity */
.fdm-purchase .price {
	font: inherit;
}

.fdm-purchase form.cart,
.fdm-purchase .single_variation_wrap,
.fdm-purchase .single_variation {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.fdm-purchase form.variations_form,
.fdm-purchase form.grouped_form {
	display: grid;
	justify-items: start;
	width: 100%;
}

.fdm-purchase .single_variation_wrap {
	display: grid;
}

.fdm-surface .fdm-purchase .woocommerce-variation.single_variation {
	margin: 0;
}

.fdm-purchase .single_variation:empty,
.fdm-purchase .woocommerce-variation-price,
.fdm-purchase .woocommerce-variation-description {
	display: none;
}

.fdm-purchase table.variations:not(:has(tr:not([hidden]))) {
	display: none;
}

.fdm-purchase fieldset {
	border: 0;
	padding: 0;
	min-width: 0;
}

.fdm-options button,
.fdm-purchase .single_add_to_cart_button {
	display: inline-block;
	width: auto;
	max-width: 100%;
	min-height: 43px;
	cursor: pointer;
	font: 600 14px/21px var(--body);
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 24px;
	background: var(--canvas);
	color: var(--text);
}

.fdm-options [aria-pressed="true"],
.fdm-purchase button.single_add_to_cart_button {
	background: var(--brand);
	color: var(--on-brand);
}

.fdm-purchase .single_add_to_cart_button:disabled,
.fdm-purchase .single_add_to_cart_button.disabled {
	color: var(--muted);
	background: var(--disabled-surface);
	opacity: 1;
}

.fdm-stepper {
	display: inline-grid;
	grid-template-columns: 42px 48px 42px;
	align-items: center;
	border: 1px solid var(--field-border);
	border-radius: 24px;
	overflow: hidden;
}

.fdm-purchase .fdm-stepper :is(input, button) {
	box-sizing: border-box;
	padding: 0;
	text-align: center;
	width: 100%;
	height: 42px;
	min-height: 0;
	border: 0;
	font: 400 16px var(--body);
	color: var(--text);
	background: var(--canvas);
	appearance: textfield;
}

.fdm-stepper input::-webkit-inner-spin-button {
	appearance: none;
}

.fdm-purchase .variations_button {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.fdm-purchase .group_table {
	width: 100%;
	border-collapse: collapse;
}

.fdm-purchase .group_table tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px 10px;
	padding: 8px 0;
}

.fdm-purchase .group_table td {
	padding: 0;
	border: 0;
}

.fdm-purchase .group_table td:first-child {
	grid-column: 2;
	grid-row: 1/3;
}

.fdm-purchase .group_table td:not(:first-child) {
	grid-column: 1;
}

.fdm-pdp .s03-delivery small {
	display: block;
	margin-top: 6px;
	font: 400 13px/20px var(--body);
}

.fdm-pdp .s03-delivery .catalog-icon {
	width: 22px;
	height: 22px;
}

.fdm-pdp .product-gallery .gallery-image img,
.catalog-quick .product-gallery .gallery-image img {
	height: 100%;
}

@media (max-width: 767px) {

	.fdm-pdp .pdp-buy h1 {
		font-size: 36px;
		line-height: 42px;
	}

	.fdm-catalog .fdm-pdp {
		padding-inline: 16px;
	}
}

.fdm-surface[data-type="variable"]:not(.resolved) .quantity {
	display: none;
}
/* stylelint-disable no-descending-specificity */
.fdm-choice-hint,
.purchase-feedback {
	font: 600 14px/21px var(--body);
	color: var(--muted);
}
/* stylelint-enable no-descending-specificity */

.fdm-purchase form.variations_form {
	gap: 14px;
}

.fdm-pdp [hidden],
.fdm-surface [hidden] {
	display: none !important;
}

.fdm-surface .fdm-purchase .fdm-qty-label {
	display: block;
	font: 600 14px/21px var(--body);
	margin: 0 0 8px;
}

.fdm-purchase .variations_button:has(.fdm-qty-label),
.fdm-purchase form.cart:has(>.quantity .fdm-qty-label) {
	align-items: flex-end;
}

.fdm-pdp #tab-description {
	font: 400 15px/22px var(--body);
}

.fdm-pdp #tab-description h3 {
	font: 600 16px/24px var(--body);
}

.gallery-with-strip {
	--edge: 8px;
}

.gallery-with-strip .gallery-stage {
	aspect-ratio: 1;
	border: 0;
}

.gallery-with-strip .gallery-strip {
	position: relative;
	margin-top: 8px;
}

.gallery-with-strip .gallery-thumbs {
	display: flex;
	gap: 4px;
	margin: 0;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.gallery-with-strip .gallery-thumbs .thumb {
	flex: 0 0 calc((100% - 20px)/6);
	height: auto;
	aspect-ratio: 4/3;
	border-radius: 5px;
}

.gallery-with-strip .gallery-control:is(.next, .previous, .thumbs-previous, .thumbs-next) {
	border: 0;
	background: color-mix(in srgb, var(--wp--preset--color--canvas) 60%, transparent);
}

.gallery-with-strip .gallery-control:is(.previous, .thumbs-previous) img {
	transform: rotate(180deg);
}

.gallery-with-strip .gallery-strip > button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.gallery-with-strip .thumbs-previous {
	left: 2px;
}

.gallery-with-strip .thumbs-next {
	right: 2px;
}

.gallery-with-strip .gallery-strip > button:disabled {
	pointer-events: none;
	opacity: 1;
}

.gallery-with-strip .gallery-strip > button:disabled img {
	opacity: 0.45;
}
/* stylelint-disable-next-line no-descending-specificity */
.gallery-with-strip .gallery-strip > button img {
	width: 18px;
	height: 18px;
}

.fdm-purchase .quick-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.fdm-purchase .quick-stock {
	margin-inline-start: auto;
}

.fdm-purchase .fdm-options {
	width: 100%;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
}

.fdm-options legend {
	float: left;
	width: 72px;
	padding: 0;
	font: 600 14px/21px var(--body);
	overflow-wrap: anywhere;
}

.fdm-options .quick-option-values {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
}
/* stylelint-disable no-descending-specificity */
.fdm-options .quick-option-values button {
	margin: 0;
	padding-inline: 12px;
	white-space: normal;
	overflow-wrap: anywhere;
}

.fdm-purchase .single_variation_wrap,
.fdm-purchase .variations_button {
	width: 100%;
}

.fdm-purchase .variations_button,
.fdm-purchase form.cart:has(> .quantity) {
	gap: 8px;
	align-items: flex-end;
}
/* stylelint-enable no-descending-specificity */

.fdm-purchase .variations_button > .single_add_to_cart_button,
.fdm-purchase form.cart:has(> .quantity) > .single_add_to_cart_button {
	flex: 1 1 100px;
	min-height: 44px;
}

.fdm-purchase .single_variation:has(> .woocommerce-variation-price):not(:has(> :not(.woocommerce-variation-price, .woocommerce-variation-description))) {
	display: none !important;
}

.fdm-surface .fdm-purchase,
.fdm-surface .fdm-purchase :is(form.cart, .single_variation_wrap, .single_variation) {
	gap: 8px;
}

.catalog-quick .quick-info {
	gap: 16px;
}

.catalog-quick .quick-details {
	color: var(--text);
	font: 400 14px/20px var(--body);
	text-decoration: none;
}

.catalog-quick .quick-details:hover {
	text-decoration: underline;
}

.catalog-quick .fdm-purchase,
.catalog-quick .fdm-purchase :is(form.cart, .single_variation_wrap) {
	gap: 14px;
}

.catalog-quick .fdm-purchase .fdm-options {
	display: block;
}

.catalog-quick .fdm-options legend {
	float: none;
	width: auto;
	margin-bottom: 8px;
}

.catalog-quick .quick-option-values {
	gap: 8px;
}
/* stylelint-disable-next-line no-descending-specificity */
.catalog-quick .quick-option-values button {
	padding-inline: 14px;
}

.catalog-quick .fdm-purchase .variations_button {
	margin-top: 0;
}

.catalog-quick .fdm-purchase form.cart .single_add_to_cart_button {
	flex: 0 1 auto;
	width: auto;
	min-height: 43px;
}

.catalog-quick .purchase-price {
	font-weight: 800;
}

.catalog-quick .gallery-strip {
	margin-top: 12px;
}

.catalog-quick .gallery-thumbs {
	gap: 8px;
}

.catalog-quick .gallery-thumbs .thumb {
	flex: 0 0 var(--thumb);
	height: var(--thumb);
	border-radius: 8px;
}

.catalog-quick .compact {
	--edge: 15px;
}

.catalog-quick .compact .gallery-control:is(.previous, .next) {
	--fdm-rest: var(--disabled-surface);
	border: 1px solid var(--border);
}
/* stylelint-disable no-descending-specificity */
.catalog-quick .compact .previous img {
	transform: none;
}

/*
 * Woo also dims the whole button; the theme already provides disabled
 * colours.
 */
.catalog-quick .single_add_to_cart_button:disabled {
	opacity: 1 !important;
}

.catalog-quick .gallery-control.zoom img {
	width: 18px;
	height: 18px;
}
/* stylelint-enable no-descending-specificity */

@media (max-width: 760px) {

	.catalog-quick .compact {
		max-width: 240px;
		margin-inline: auto;
		--edge: 11px;
	}

	.catalog-quick .compact .gallery-stage {
		aspect-ratio: 240/226;
	}

	.catalog-quick .quick-details {
		display: none;
	}
}

.fdm-purchase .stock {
	font: 600 12px/21px var(--body);
	color: var(--text);
}

.fdm-purchase .stock.out-of-stock {
	color: var(--error);
}

.fdm-purchase .fdm-stepper button:disabled {
	border-radius: 50%;
	background: var(--disabled-surface);
	color: var(--muted);
	cursor: default;
}

.fdm-pdp .fdm-purchase .purchase-price {
	font-weight: 800;
}
/* stylelint-disable no-descending-specificity */
.fdm-options button:disabled {
	cursor: default;
	color: var(--muted);
	background: var(--disabled-surface);
}

.fdm-purchase .fdm-stepper button {
	display: grid;
	place-items: center;
	cursor: pointer;
}
/* stylelint-enable no-descending-specificity */

.fdm-purchase .quick-stock:empty {
	display: none;
}

.fdm-pdp .pdp-category a {
	color: inherit;
}

@media (min-width: 768px) {

	.fdm-pdp .pdp-related .home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 612px;
	}
}

a[data-quick-add][aria-busy="true"] {
	cursor: progress;
	opacity: 0.72;
}
