/* Product recommendations use the storefront catalog's product cards. */
body.single-product .javune-product-page > .javune-discovery-slot {
	width: 100%;
	max-width: none;
	margin-block: 0;
	padding: 0;
}

body.single-product .javune-discovery-slot > .wp-block-shortcode {
	max-width: none;
	margin: 0;
}

body.single-product .javune-discovery,
body.single-product .javune-discovery-collections {
	width: min(1320px, calc(100% - clamp(28px, 6vw, 96px)));
	max-width: none;
	margin-inline: auto;
}

body.single-product .javune-discovery--shelf {
	--javune-discovery-ink: var(--wp--preset--color--plum, #23171e);
	--javune-discovery-accent: var(--wp--preset--color--berry, #7d1c47);
	--javune-discovery-tint: var(--wp--preset--color--blush, #faeef2);
	margin-block: clamp(36px, 5.1vw, 76px);
	color: var(--javune-discovery-ink);
}

body.single-product .javune-discovery--shelf :is(h2, .javune-discovery-heading-row) {
	margin-block: 0 clamp(16px, 2.4vw, 30px);
}

body.single-product .javune-discovery--shelf .javune-discovery-heading-row h2 {
	margin: 0;
}

body.single-product .javune-discovery--shelf h2 {
	color: var(--javune-discovery-ink);
	font-family: var(--wp--preset--font-family--studio-serif, Georgia, serif);
	font-size: clamp(1.55rem, 1.2rem + 1.35vw, 2.45rem);
	font-weight: 400;
	letter-spacing: -0.022em;
	line-height: 1.12;
}

body.single-product .javune-discovery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	column-gap: clamp(10px, 1.65vw, 24px);
	row-gap: clamp(22px, 3.4vw, 45px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	body.single-product .javune-discovery-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.single-product .javune-discovery-card {
	min-width: 0;
	margin: 0;
}

body.single-product .javune-discovery-card[hidden] {
	display: none;
}

body.single-product .javune-discovery-photo {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #f4f0f1;
}

body.single-product .javune-discovery-photo > p:empty {
	display: none;
}

body.single-product .javune-discovery-photo > a {
	display: block;
}

body.single-product .javune-discovery-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

body.single-product .javune-discovery-sale {
	position: absolute;
	inset: 9px 9px auto auto;
	z-index: 1;
	padding: 5px 9px;
	border-radius: 3px;
	background: var(--javune-discovery-accent, #7d1c47);
	color: #fff;
	font: 600 .72rem/1.15 var(--wp--preset--font-family--studio-sans, Inter, system-ui, sans-serif);
	pointer-events: none;
}

body.single-product .javune-discovery-photo-controls {
	position: absolute;
	inset: 50% 4px auto;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	transform: translateY(-50%);
	pointer-events: none;
}

body.single-product .javune-discovery-photo-controls button {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--javune-discovery-ink, #23171e);
	box-shadow: 0 1px 5px #23171e30;
	font: 400 1.13rem/1 var(--wp--preset--font-family--studio-sans, Inter, system-ui, sans-serif);
	cursor: pointer;
	pointer-events: auto;
}

body.single-product .javune-discovery-photo-controls button:hover {
	background: var(--javune-discovery-tint, #faeef2);
}

body.single-product .javune-discovery-image-progress {
	position: absolute;
	inset: auto 0 0;
	display: block;
	height: 3px;
	overflow: hidden;
	background: #ffffffa6;
	pointer-events: none;
}

body.single-product .javune-discovery-image-progress::before {
	content: "";
	display: block;
	width: var(--javune-discovery-progress, 25%);
	height: 100%;
	background: var(--javune-discovery-accent, #7d1c47);
	transition: width 160ms ease;
}

body.single-product .javune-discovery-card h3 {
	margin: 9px 0 4px;
	font: 500 clamp(.85rem, .8rem + .22vw, 1rem)/1.4 var(--wp--preset--font-family--studio-sans, Inter, system-ui, sans-serif);
	overflow-wrap: anywhere;
}

body.single-product .javune-discovery-card h3 a {
	color: var(--javune-discovery-ink, #23171e);
	text-decoration: none;
}

body.single-product .javune-discovery-card h3 a:hover {
	color: var(--javune-discovery-accent, #7d1c47);
}

body.single-product .javune-discovery-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 5px;
	color: var(--javune-discovery-ink, #23171e);
	font: 500 clamp(.8rem, .76rem + .19vw, .94rem)/1.4 var(--wp--preset--font-family--studio-sans, Inter, system-ui, sans-serif);
}

body.single-product .javune-discovery-price del {
	order: 2;
	color: #665861;
	font-size: .9em;
}

body.single-product .javune-discovery-price ins {
	order: 0;
	color: var(--javune-discovery-accent, #7d1c47);
	font-weight: 600;
	text-decoration: none;
}

body.single-product .javune-discovery-currency {
	order: 1;
	white-space: nowrap;
}

body.single-product .javune-discovery-more {
	margin-block: clamp(18px, 3.2vw, 32px) 0;
	text-align: center;
}

body.single-product .javune-discovery-more[hidden] {
	display: none;
}

body.single-product :is(a, button).javune-discovery-more,
body.single-product .javune-discovery-more :is(a, button) {
	display: flex;
	width: fit-content;
	min-width: 132px;
	min-height: 44px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	margin-inline: auto;
	padding: 9px 23px;
	border: 1px solid var(--javune-discovery-accent, #7d1c47);
	border-radius: 4px;
	background: transparent;
	color: var(--javune-discovery-accent, #7d1c47);
	font: 600 .875rem/1.25 var(--wp--preset--font-family--studio-sans, Inter, system-ui, sans-serif);
	text-decoration: none;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease;
}

body.single-product :is(a, button).javune-discovery-more:hover,
body.single-product .javune-discovery-more :is(a, button):hover {
	background: var(--javune-discovery-accent, #7d1c47);
	color: #fff;
}

body.single-product :is(a, button).javune-discovery-more[hidden],
body.single-product .javune-discovery-more :is(a, button)[hidden] {
	display: none;
}

body.single-product .javune-discovery :is(a, button):focus-visible,
body.single-product .javune-discovery-collection:focus-visible {
	outline: 2px solid var(--javune-discovery-accent, #7d1c47);
	outline-offset: 3px;
}

body.single-product .javune-discovery-photo :is(a, button):focus-visible {
	position: relative;
	outline-offset: -3px;
}

body.single-product .javune-discovery-collections {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: clamp(220px, 15vw, 280px);
	gap: 8px;
	margin-block: 48px 40px;
}

body.single-product .javune-discovery-collection {
	position: relative;
	display: block;
	min-width: 0;
	overflow: hidden;
	border-radius: 15px;
	background: #eae3e4;
	color: #1b1719;
}

body.single-product .javune-discovery-collection:nth-child(2),
body.single-product .javune-discovery-collection:nth-child(4) {
	grid-column: span 2;
}

body.single-product .javune-discovery-collection img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

body.single-product .javune-discovery-collection:hover img {
	transform: scale(1.025);
}

body.single-product .javune-discovery-collection span {
	position: absolute;
	inset: auto auto 16px 50%;
	max-width: calc(100% - 24px);
	padding: 8px 12px;
	transform: translateX(-50%);
	background: #fff;
	font: 500 .88rem/1.2 Inter, system-ui, sans-serif;
	text-align: center;
	white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
	body.single-product .javune-discovery-photo-controls {
		opacity: 0;
		transition: opacity 180ms ease;
	}

	body.single-product .javune-discovery-card:hover .javune-discovery-photo-controls,
	body.single-product .javune-discovery-card:focus-within .javune-discovery-photo-controls {
		opacity: 1;
	}
}

@media (max-width: 799px) {
	body.single-product .javune-discovery-collections {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.single-product .javune-discovery-collection:nth-child(2),
	body.single-product .javune-discovery-collection:nth-child(4) {
		grid-column: auto;
	}
}

@media (max-width: 520px) {
	body.single-product .javune-discovery-collections {
		grid-auto-rows: 150px;
		gap: 6px;
	}

	body.single-product .javune-discovery-collection {
		border-radius: 10px;
	}

	body.single-product .javune-discovery-collection span {
		bottom: 9px;
		padding: 6px 8px;
		font-size: .73rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product .javune-discovery-collection img,
	body.single-product .javune-discovery-photo-controls,
	body.single-product .javune-discovery-image-progress::before,
	body.single-product :is(a, button).javune-discovery-more,
	body.single-product .javune-discovery-more :is(a, button) {
		transition: none;
	}
}

