/* RouwExpertise: inkijkexemplaar als bladerboek (0.9.3) */

/* ---------- sectie op de productpagina ---------- */
.rxi-sectie {
	clear: both;
	margin: 56px 0 40px;
	padding: 40px 24px 32px;
	background: #FEFAE6;
	border-radius: 18px;
	text-align: center;
}
.rxi-sectie .rxi-oog {
	margin: 0 0 6px;
	color: #D9783A;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.rxi-sectie h2 {
	margin: 0 0 8px;
	color: #2F4721;
	font-size: 32px;
	line-height: 1.2;
}
.rxi-sectie .rxi-lead {
	max-width: 560px;
	margin: 0 auto 28px;
	color: #4b4a46;
}

/* ---------- link naar het bladerboek, onder het koopvak (rustig sinds 0.9.11) ---------- */
.rxi-naar { margin: 0 0 26px; }
.rxi-naar-knop {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #4A6C34 !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}
.rxi-naar-knop:hover,
.rxi-naar-knop:focus-visible { color: #2F4721 !important; }
.rxi-naar-icoon {
	width: 20px;
	height: 15px;
	background:
		linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat,
		linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
	border: 2px solid currentColor;
	border-bottom: 0;
	border-radius: 3px 3px 0 0;
}
/* Voorraad en verzending als één regel onder de koopknop (sinds 0.9.11). */
.single-product form.cart { row-gap: 14px; margin-bottom: 14px !important; }
.product form.cart .rx-koopregel {
	order: 5;
	flex-basis: 100%;
	margin: 0;
	color: #5E5A55;
	font-size: 14px;
	line-height: 1.4;
}
.product form.cart .rx-op-voorraad { color: #4A6C34; font-weight: 600; }
.product form.cart .rx-op-voorraad::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 0 7px 1px 0;
	border-radius: 50%;
	background: #4A6C34;
}

/* De galerij stond 110 px te laag: de regel uit de Extra CSS (sticky alleen op
   hoge schermen) zette top:110px, maar WooCommerce houdt de galerij op
   position:relative, dus schoof hij omlaag in plaats van mee te schuiven. */
html body.single-product.woocommerce div.product div.images.woocommerce-product-gallery { top: 0; }

/* ---------- het bladerboek ---------- */
.rxi {
	--rxi-ratio: .7;
	position: relative;
	max-width: 1120px;
	margin: 0 auto;
	outline: none;
	overflow-x: clip;
}
.rxi:focus-visible { box-shadow: 0 0 0 3px rgba(226, 162, 59, .6); border-radius: 12px; }
.rxi-boek {
	position: relative;
	margin: 0 auto;
	perspective: 2400px;
}
.rxi-breed .rxi-boek {
	width: min(100%, calc(78vh * var(--rxi-ratio) * 2));
	aspect-ratio: calc(var(--rxi-ratio) * 2) / 1;
}
.rxi-smal .rxi-boek {
	width: min(100%, calc(72vh * var(--rxi-ratio)));
	aspect-ratio: var(--rxi-ratio) / 1;
}
.rxi-podium {
	position: absolute;
	inset: 0;
	transition: transform .7s ease;
	cursor: pointer;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}
/* Eerste of laatste bladzijde alleen: boek schuift naar het midden. */
.rxi-breed.rxi-alleen-rechts .rxi-podium { transform: translateX(-25%); }
.rxi-breed.rxi-alleen-links .rxi-podium { transform: translateX(25%); }

.rxi-kant {
	position: absolute;
	top: 0;
	bottom: 0;
}
.rxi-links { left: 0; width: 50%; }
.rxi-rechts { right: 0; width: 50%; }
.rxi-enkel { left: 0; right: 0; }

.rxi-blad {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 28px rgba(35, 40, 25, .16), 0 1px 3px rgba(35, 40, 25, .12);
}
.rxi-blad img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	pointer-events: none;
}
.rxi-blad.rxi-leeg { background: transparent; box-shadow: none; }

/* Rug van het boek: zachte schaduw naar de vouw. */
.rxi-links .rxi-blad:not(.rxi-leeg)::after,
.rxi-rechts .rxi-blad:not(.rxi-leeg)::after,
.rxi-vel-rechts .rxi-voor .rxi-blad::after,
.rxi-vel-rechts .rxi-achter .rxi-blad::after,
.rxi-vel-links .rxi-voor .rxi-blad::after,
.rxi-vel-links .rxi-achter .rxi-blad::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 9%;
	pointer-events: none;
}
.rxi-links .rxi-blad::after,
.rxi-vel-rechts .rxi-achter .rxi-blad::after,
.rxi-vel-links .rxi-voor .rxi-blad::after {
	right: 0;
	background: linear-gradient(to left, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0));
}
.rxi-rechts .rxi-blad::after,
.rxi-vel-rechts .rxi-voor .rxi-blad::after,
.rxi-vel-links .rxi-achter .rxi-blad::after {
	left: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0));
}

/* Omslaande bladzijde. */
.rxi-vel {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50%;
	z-index: 3;
	transform-style: preserve-3d;
	transition: transform .7s cubic-bezier(.45, .05, .25, 1);
}
.rxi-vel-rechts { left: 50%; transform-origin: 0 50%; }
.rxi-vel-links { left: 0; transform-origin: 100% 50%; }
.rxi-vel-rechts.rxi-om { transform: rotateY(-180deg); }
.rxi-vel-links.rxi-om { transform: rotateY(180deg); }
.rxi-vlak {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}
.rxi-achter { transform: rotateY(180deg); }

/* Smal: schuiven. */
.rxi-binnen-rechts { transform: translateX(104%); }
.rxi-binnen-links { transform: translateX(-104%); }
.rxi-enkel { transition: transform .34s ease, opacity .34s ease; }
.rxi-enkel.rxi-op-plek { transform: none; }
.rxi-enkel.rxi-weg-links { transform: translateX(-104%); opacity: .3; }
.rxi-enkel.rxi-weg-rechts { transform: translateX(104%); opacity: .3; }
.rxi-smal .rxi-boek { overflow: hidden; border-radius: 4px; }
.rxi-smal .rxi-blad { box-shadow: 0 4px 16px rgba(35, 40, 25, .14); }

/* Kaart na de laatste bladzijde. */
.rxi-blad-einde {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	cursor: default;
}
.rxi-einde {
	padding: 8% 10%;
	text-align: center;
	color: #2B2A28;
}
.rxi-einde p { margin: 0 0 12px; }
.rxi-einde-oog {
	color: #D9783A;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.rxi-einde-titel {
	color: #2F4721;
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.25;
}
.rxi-einde-prijs { font-size: 20px; font-weight: 600; color: #2F4721; }
.rxi-einde-prijs small { font-size: 12px; font-weight: 400; color: #6b6a65; }
.rxi-einde-klein { color: #6b6a65; font-size: 13px; }
.rxi-knop {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 999px;
	background: #4A6C34;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.rxi-knop:hover, .rxi-knop:focus-visible { background: #2F4721; }

/* Bediening. */
.rxi-bediening {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 22px;
}
.rxi-bediening button,
.rxi-groot {
	padding: 9px 18px;
	border: 2px solid #4A6C34;
	border-radius: 999px;
	background: #fff;
	color: #2F4721;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}
.rxi-bediening button:hover:not(:disabled),
.rxi-groot:hover { background: #4A6C34; color: #fff; }
.rxi-bediening button:disabled { opacity: .35; cursor: default; }
.rxi-teller {
	min-width: 190px;
	color: #4b4a46;
	font-size: 14px;
	text-align: center;
}
.rxi-groot {
	display: block;
	margin: 14px auto 0;
	border-color: transparent;
	background: transparent;
	text-decoration: underline;
	font-weight: 500;
	font-size: 14px;
}
.rxi-groot:hover { background: transparent; color: #2F4721; text-decoration: none; }

/* Groot bekijken: over het hele venster. */
html.rxi-groot-open { overflow: hidden; }
.rxi.rxi-is-groot {
	position: fixed;
	inset: 0;
	z-index: 100000;
	max-width: none;
	margin: 0;
	padding: 28px 24px 18px;
	background: rgba(37, 42, 30, .96);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.rxi-is-groot.rxi-breed .rxi-boek { width: min(100%, calc((100vh - 150px) * var(--rxi-ratio) * 2)); }
.rxi-is-groot.rxi-smal .rxi-boek { width: min(100%, calc((100vh - 150px) * var(--rxi-ratio))); }
.rxi-is-groot .rxi-teller { color: #e9e6dc; }
.rxi-is-groot .rxi-bediening button { background: transparent; color: #fff; border-color: #c9d6bb; }
.rxi-is-groot .rxi-bediening button:hover:not(:disabled) { background: #4A6C34; }
.rxi-is-groot .rxi-groot {
	position: absolute;
	top: 14px;
	right: 18px;
	margin: 0;
	color: #fff;
	border: 2px solid #c9d6bb;
	text-decoration: none;
}

/* Zonder script: bladzijden onder elkaar. */
.rxi-zonderjs img { display: block; max-width: 520px; width: 100%; height: auto; margin: 0 auto 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.rxi:not(.rxi-klaar) .rxi-boek,
.rxi:not(.rxi-klaar) .rxi-bediening,
.rxi:not(.rxi-klaar) .rxi-groot { display: none; }

@media (max-width: 640px) {
	.rxi-sectie { margin: 36px -8px 28px; padding: 28px 12px 22px; border-radius: 14px; }
	.rxi-sectie h2 { font-size: 26px; }
	.rxi-bediening { gap: 8px; }
	.rxi-bediening button { padding: 8px 12px; font-size: 14px; }
	.rxi-teller { min-width: 0; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.rxi-podium, .rxi-vel, .rxi-enkel { transition: none !important; }
}

/* ---------- productpagina boeken: aanbeveling, thema's, lezers (0.9.3) ---------- */
.product .rx-aanbeveling {
	margin: 0 0 20px;
	padding: 2px 0 2px 16px;
	border: 0;
	border-left: 2px solid #E2A23B;
	background: none;
	border-radius: 0;
}
.product .rx-aanbeveling p {
	margin: 0 0 4px;
	color: #2B2A28;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.4;
}
.product .rx-aanbeveling cite,
.product .rx-lezers cite {
	display: block;
	color: #6b6a65;
	font-size: 14px;
	font-style: normal;
}
.product .rx-auteurregel { color: #4b4a46; font-size: 15px; }
.product .rx-themas-kop { margin-bottom: 8px; }
.product ol.rx-themas {
	columns: 2;
	column-gap: 24px;
	margin: 0 0 18px;
	padding-left: 22px;
	font-size: 15px;
	line-height: 1.5;
}
.product ol.rx-themas li { break-inside: avoid; margin: 0 0 2px; padding-left: 2px; }
.product ol.rx-themas li::marker { color: #D9783A; font-weight: 700; }
.product .rx-cadeau {
	padding: 0;
	font-size: 15px;
}
.product .rx-lezers {
	margin: 0 0 28px;
	padding: 22px 26px;
	border: 0;
	background: #FEFAE6;
	border-radius: 14px;
}
.product .rx-lezers p { margin: 0 0 8px; font-size: 18px; font-style: italic; color: #2B2A28; line-height: 1.45; }
@media (max-width: 480px) {
	.product ol.rx-themas { columns: 1; }
}

/* ---------- kaartenset bij het boek (bundel.php, sinds 0.9.11) ---------- */
.product form.cart .rx-bundel {
	order: -1;
	flex-basis: 100%;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: #2B2A28;
	font-size: 15px;
	line-height: 1.45;
}
.product form.cart label.rx-bundel { cursor: pointer; }
.product form.cart .rx-bundel input[type="checkbox"] {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin: 2px 0 0;
	accent-color: #4A6C34;
	cursor: pointer;
}
.product form.cart .rx-bundel del { color: #8a8780; }
.product form.cart .rx-bundel a { color: #4A6C34; font-size: 14px; white-space: nowrap; }
.rx-bundel-met { display: block; color: #6b6a65; font-size: 13px; font-weight: 400; }
