/* "Receptfritt från Apovital": pale card with a carousel of white product tiles (round 4, group produkter).
   Loaded after in-kort.css (arrows and the carousel script are shared). Every class is p3-in-prod*. Only transform and opacity animate. */

/* Two columns wide only where the sheet is a grid; on a phone it is one column (an explicit column there squeezed the whole sheet). */
@media (min-width: 901px) {
	.p3-sheets .p3-sheet > .p3-in-prod {
		grid-column: 2 / 4;
	}
}

.p3-sheets .p3-in-prod h2 {
	margin-bottom: 12px;
}

.p3-sheets .p3-in-prod__lede {
	max-width: 560px;
	margin: 0 0 28px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--p3-ink-soft);
}

.p3-in-prod__stage {
	position: relative;
}

.p3-in-prod__track {
	display: flex;
	gap: 10px;
	margin-right: calc(var(--p3-pad) * -1);
	padding: 4px var(--p3-pad) 12px 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.p3-in-prod__track::-webkit-scrollbar {
	display: none;
}

.p3-in-prod__track:focus-visible {
	outline: 3px solid var(--p3-ink);
	outline-offset: -3px; /* inside: the track runs to the sheet's edge on the right, which cut an outside ring (Kajal 2026-10-26) */
	border-radius: 16px;
}

.p3-in-prod__tile {
	display: flex;
	flex: 0 0 min(270px, 78%);
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
	padding: 14px 14px 18px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(31, 39, 54, .06), 0 22px 34px -26px rgba(31, 39, 54, .45);
	color: var(--p3-ink);
	scroll-snap-align: start;
	transition: transform .4s var(--p3-spring);
}

.p3-in-prod__tile:hover {
	transform: translateY(-4px);
}

/* White frame with the picture's own white studio background kept, as on Apovital (owner 2026-09-26: no cut-out, no multiply). Contained, never cropped. */
.p3-in-prod__pic {
	position: relative;
	height: 200px;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(31, 39, 54, .1);
}

.p3-in-prod__pic img {
	position: absolute;
	inset: 12px;
	width: calc(100% - 24px);
	max-width: none;
	height: calc(100% - 24px);
	object-fit: contain;
}

.p3-in-prod__pic--plain {
	display: grid;
	place-items: center;
	background: linear-gradient(160deg, var(--r4-bonea, #eef1f6), color-mix(in srgb, var(--r4-glow, #b9c4d8) 45%, var(--r4-bonea, #eef1f6)));
	box-shadow: none;
}

.p3-in-prod__pic--plain span {
	padding: 0 16px;
	color: var(--p3-ink);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -.01em;
	text-align: center;
}

.p3-in-prod__chip {
	align-self: flex-start;
	margin-top: 6px;
	padding: 3px 10px;
	border-radius: 100px;
	background: rgba(31, 39, 54, .08);
	font-size: 12px;
	line-height: 1.5;
	color: var(--p3-ink);
}

.p3-sheets .p3-in-prod__tile h3 {
	font-size: 18px;
	line-height: 1.25;
	min-height: 2.5em;
	text-wrap: balance;
}

.p3-sheets .p3-in-prod__tile .p3-in-prod__maker {
	font-size: 13px;
	line-height: 1.4;
	color: var(--p3-ink-soft);
}

.p3-sheets .p3-in-prod__tile .p3-in-prod__price {
	margin-top: auto;
	padding-top: 6px;
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -.03em;
	font-weight: var(--heading-weight);
	color: var(--p3-ink);
}

.p3-in-prod__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	margin-top: 6px;
	padding: 0 20px;
	border-radius: 100px;
	background: var(--p3-ink);
	color: #fff;
	font-size: 15px;
	text-decoration: none;
	transition: transform .3s var(--p3-spring);
}

.p3-in-prod__btn:hover {
	transform: translateY(-2px);
}

.p3-in-prod__btn:active {
	transform: scale(.97);
}

.p3-in-prod__btn:focus-visible {
	outline: 3px solid var(--p3-ink);
	outline-offset: 3px;
}

.p3-in-prod__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.p3-sheets .p3-in-prod__foot {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--p3-ink-soft);
}

.p3-in-prod__foot a {
	color: var(--p3-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity .2s ease;
}

.p3-in-prod__foot a:hover {
	opacity: .7;
}

.p3-in-prod__foot a:active {
	opacity: .5;
}

.p3-in-prod__foot a:focus-visible {
	outline: 3px solid var(--p3-ink);
	outline-offset: 3px;
	border-radius: 4px;
}

/* The arrows sit in the heading row (top right), as in "Fler inom", so they never cover a product picture. */
.p3-in-prod {
	position: relative;
}

.p3-in-prod__stage {
	position: static;
}

.p3-in-prod__stage > .p3-in-arrow {
	position: absolute;
	top: calc(var(--p3-pad, 40px) + 3px);
	left: auto;
	z-index: 2;
	margin-top: 0;
	box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5);
}

.p3-in-prod__stage > .p3-in-arrow--next {
	right: var(--p3-pad, 40px);
}

.p3-in-prod__stage > .p3-in-arrow--prev {
	right: calc(var(--p3-pad, 40px) + 48px);
}

@media (max-width: 700px) {
	.p3-in-prod__stage > .p3-in-arrow {
		display: none;
	}

	.p3-in-prod__tile {
		flex-basis: 74%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.p3-in-prod__tile,
	.p3-in-prod__btn,
	.p3-in-prod__foot a {
		transition: none;
	}

	.p3-in-prod__tile:hover,
	.p3-in-prod__btn:hover {
		transform: none;
	}
}
