/* Product detail uses the same Jost hierarchy as the catalogue. */
.single-product #primary .woocommerce-product-gallery .slick-slider button.slick-arrow {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 2px;
	/* Override Slick's background:none !important from the parent theme. */
	background: rgba(255, 255, 255, .45) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #505461;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: background-color 180ms ease-out, opacity 180ms ease-out;
}

.single-product #primary .woocommerce-product-gallery .slick-arrow::before {
	content: '';
	display: block;
	position: absolute;
	left: calc(50% - 7px);
	top: calc(50% - 7px);
	width: 14px;
	height: 14px;
	margin: 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m8.5 5 7 7-7 7' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m8.5 5 7 7-7 7' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.single-product #primary .woocommerce-product-gallery .slick-prev::before { transform: rotate(180deg); }
.single-product #primary .woocommerce-product-gallery .slick-vertical .slick-prev::before { transform: rotate(-90deg); }
.single-product #primary .woocommerce-product-gallery .slick-vertical .slick-next::before { transform: rotate(90deg); }

.single-product #primary .single-product-gallery .slick-prev { left: 12px; }
.single-product #primary .single-product-gallery .slick-next { right: 12px; }

.single-product #primary .woocommerce-product-gallery .slick-arrow::after {
	content: '';
	position: absolute;
	inset: -6px;
}

.single-product #primary .single-product-thumbnails.slick-vertical {
	/* Stop the preview rail stretching to the height of the main photograph. */
	align-self: flex-start;
	padding-bottom: 44px;
}

.single-product #primary .woocommerce-product-gallery .slick-vertical button.slick-arrow {
	left: calc(50% - 14px) !important;
	width: 28px;
	height: 28px;
	margin-top: 0;
}

.single-product #primary .woocommerce-product-gallery .slick-vertical .slick-arrow::after {
	content: '';
	position: absolute;
	inset: -8px;
}

.single-product #primary .woocommerce-product-gallery .slick-vertical .slick-prev { top: 8px; }
.single-product #primary .woocommerce-product-gallery .slick-vertical .slick-next { bottom: 8px; }

.single-product #primary .woocommerce-product-gallery button.slick-arrow:hover {
	background: rgba(255, 255, 255, .75) !important;
}

.single-product #primary .woocommerce-product-gallery .slick-slider .slick-arrow.slick-disabled {
	opacity: .35 !important;
	cursor: default;
}

.single-product #primary .woocommerce-product-gallery .slick-arrow:focus-visible {
	outline: 2px solid #9d705b;
	outline-offset: 3px;
}

.single-product #primary .single-product-gallery {
	--pers-gallery-limit: min(680px, 70vh);
	--pers-gallery-limit: min(680px, 70svh);
}

.single-product #primary .single-product-gallery .woocommerce-product-gallery__image {
	position: relative;
	aspect-ratio: 1;
	height: auto;
	max-height: var(--pers-gallery-limit);
	vertical-align: top;
}

.single-product #primary .single-product-gallery .woocommerce-product-gallery__image > a {
	position: absolute;
	inset: 0;
	height: 100%;
}

.single-product #primary .single-product-gallery .woocommerce-product-gallery__image > img:not(.zoomImg),
.single-product #primary .single-product-gallery .woocommerce-product-gallery__image > a > img:not(.zoomImg) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.single-product #primary .pls-single-product-top {
	align-items: flex-start;
	gap: 16px;
	margin-top: 24px;
	margin-bottom: 16px;
}

.single-product #primary .entry-breadcrumbs {
	min-width: 0;
}

.single-product #primary .pls-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 4px;
	font-size: 12px;
	line-height: 1.5;
	color: #76716d;
}

.single-product #primary .pls-breadcrumb :is(a, .last) {
	display: inline !important;
	max-width: none;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	overflow-wrap: anywhere;
	color: inherit;
}

.single-product #primary .pls-breadcrumb .pls-delimiter-sep {
	flex: none;
}

.single-product #primary .pls-breadcrumb a:hover {
	color: #885b46;
}

.single-product #primary .pls-breadcrumb a:focus-visible {
	outline: 2px solid #9d705b;
	outline-offset: 3px;
}

.single-product #primary .summary .product_title {
	margin: 0 0 18px;
	color: #231f20;
	font-weight: 300;
	line-height: 1.15;
}

.single-product .pers-detail-brand {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500 !important;
	line-height: 1.3;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.single-product .pers-detail-model {
	display: block;
	font-size: var(--pers-heading-size);
	font-weight: 300 !important;
	line-height: var(--pers-heading-line);
	overflow-wrap: anywhere;
}

.single-product #primary .summary > .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	margin: 0 0 28px;
	color: #231f20;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.single-product #primary .summary > .price ins {
	font-weight: 400;
}

.single-product #primary .summary > .price del {
	font-size: 16px;
	color: #76716d;
}

.single-product #primary .summary :is(.product-reference, .product-info-simple, .woocommerce-product-details__short-description, .product_meta) {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	color: #76716d;
}

.single-product #primary .summary :is(.product-reference, .product-info-simple) strong {
	color: #231f20;
	font-weight: 400;
}

.single-product #primary .summary .woocommerce-product-details__short-description {
	line-height: 1.65;
}

.single-product #primary .woocommerce-product-gallery__wrapper > .product-labels {
	top: 16px;
	left: 16px;
}

.single-product #primary :is(.related, .up-sells, .recently-viewed) > h2 {
	font-size: var(--pers-heading-size);
	font-weight: 300;
	line-height: var(--pers-heading-line);
}

@media (max-width: 767px) {
	.single-product #primary .single-product-gallery {
		--pers-gallery-limit: 65vh;
		--pers-gallery-limit: 65svh;
	}
	.single-product #primary .pls-single-product-top { margin-top: 18px; }
	.single-product #primary .summary > .price { font-size: 20px; }
	.single-product #primary .woocommerce-product-gallery__wrapper > .product-labels {
		top: 12px;
		left: 12px;
	}
}
