/* R4DP productpagina (Hello + Elementor Theme Builder-sjabloon "R4DP – Productpagina", r4dp-product.php).
   Links de zijbalk (.r4dp-product-zijbalk), rechts de WooCommerce-productinhoud ([r4dp_product_inhoud]). */

/* Startwaarde tot kop-sticky.js de echte headerhoogte meet. */
html { --r4dp-kop-onder: 239px; }
html body.admin-bar { --r4dp-kop-onder: 271px; }

/* Verzendmelding onderaan de beschrijving: stond lichtgrijs op lichtgrijs (inline stijl uit de productimport). */
.r4dp-verzendmelding {
	background: #1B1B1B !important;
	border: 1px solid #38303D !important;
	border-left: 4px solid #e30613 !important;
	border-radius: 6px;
	padding: 14px 18px !important;
	color: #E4DDED !important;
	line-height: 1.65;
}
.r4dp-verzendmelding strong {
	color: #fff;
}

/* ---------- Zijbalk ---------- */
.r4dp-product-zijbalk .widget_recently_viewed_products h2,
.r4dp-product-zijbalk .widget_recently_viewed_products .widgettitle {
	display: none;
}
.r4dp-product-zijbalk .product_list_widget {
	list-style: none;
	margin: 0;
	padding: 0;
}
.r4dp-product-zijbalk .product_list_widget li {
	display: flow-root;
	padding: 10px 0;
	border-bottom: 1px solid #38303D;
}
.r4dp-product-zijbalk .product_list_widget li:last-child {
	border-bottom: 0;
}
.r4dp-product-zijbalk .product_list_widget li > a {
	display: block;
	color: #fff;
	font-weight: 600;
	line-height: 1.45;
}
.r4dp-product-zijbalk .product_list_widget li > a:hover {
	color: #A3FF00;
}
.r4dp-product-zijbalk .product_list_widget li .product-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	margin-bottom: 4px;
}
.r4dp-product-zijbalk .product_list_widget li img {
	float: right;
	width: 56px !important;
	height: 56px !important;
	margin: 0 0 0 12px;
	object-fit: contain;
	background: #fff;
	border-radius: 4px;
}
.r4dp-product-zijbalk .product_list_widget li .amount,
.r4dp-product-zijbalk .product_list_widget li .woocommerce-price-suffix {
	font-size: 14px;
	color: #C1C1C1;
}
.r4dp-product-zijbalk .product_list_widget li ins {
	background: none !important;
	color: #A3FF00;
	text-decoration: none;
	font-weight: 700;
}
.r4dp-product-zijbalk .product_list_widget li del {
	opacity: .6;
	margin-right: 4px;
}

@media (min-width: 1025px) {
	/* Altijd net onder de header; hoger dan het scherm → eigen dunne scrollbalk. */
	.e-con.r4dp-product-zijbalk {
		position: sticky;
		top: calc(var(--r4dp-kop-onder) + 20px);
		max-height: calc(100vh - var(--r4dp-kop-onder) - 40px);
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: #884EAA transparent;
	}
}

/* ---------- Productinhoud ---------- */
.r4dp-product-inhoud div.product {
	position: relative;
}
.r4dp-product-inhoud .product_title {
	color: #fff;
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 12px;
}
.r4dp-product-inhoud div.product p.price,
.r4dp-product-inhoud div.product span.price {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
}
.r4dp-product-inhoud .woocommerce-price-suffix {
	font-size: 14px;
	font-weight: 400;
	color: #C1C1C1;
}
.r4dp-product-inhoud .woocommerce-product-details__short-description {
	color: #C1C1C1;
}
.r4dp-product-inhoud .woocommerce-product-details__short-description h2 {
	font-size: 18px;
	margin: 10px 0 6px;
}
.r4dp-product-inhoud .product_meta {
	margin-top: 20px;
	display: grid;
	gap: 10px;
	color: #C1C1C1;
}
.r4dp-product-inhoud .product_meta > span > span:first-child,
.r4dp-product-inhoud .product_meta .sku_wrapper {
	color: #C1C1C1;
}
.r4dp-product-inhoud .product_meta a {
	color: #fff;
}
.r4dp-product-inhoud .product_meta a:hover {
	color: #A3FF00;
}
.r4dp-product-inhoud form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin: 20px 0;
}
.r4dp-product-inhoud form.cart .single_add_to_cart_button {
	padding: 15px 35px;
}
.r4dp-product-inhoud .woocommerce-product-gallery__image img {
	background: #fff;
}
/* Productfoto en miniaturen met licht afgeronde hoeken (ook de zoomlaag blijft binnen de hoeken). */
.r4dp-product-inhoud .woocommerce-product-gallery .flex-viewport,
.r4dp-product-inhoud .woocommerce-product-gallery__image {
	border-radius: 12px;
	overflow: hidden;
}
.r4dp-product-inhoud .woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 8px 0 0 !important;
	padding: 0;
}
.r4dp-product-inhoud .woocommerce-product-gallery .flex-control-thumbs li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}
.r4dp-product-inhoud .woocommerce-product-gallery .flex-control-thumbs li img {
	display: block;
	width: 100%;
	border-radius: 8px;
	background: #fff;
}

/* Aantal met − en + (zoals vroeger; knoppen via product.js) */
.r4dp-product-inhoud .quantity {
	display: inline-flex;
	align-items: stretch;
	border-top: 1px solid #424242;
	border-bottom: 1px solid #424242;
}
.r4dp-product-inhoud .quantity .qty {
	width: 52px;
	height: 44px;
	border: 0;
	border-radius: 0;
	background: #252525;
	color: #fff;
	text-align: center;
	-moz-appearance: textfield;
	padding: 0;
}
.r4dp-product-inhoud .quantity .qty::-webkit-outer-spin-button,
.r4dp-product-inhoud .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.r4dp-product-inhoud .quantity .r4dp-qty {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.r4dp-product-inhoud .quantity .r4dp-qty:hover {
	background: #38303D;
	color: #A3FF00;
}

/* Tabbladen: donker vlak, titels gecentreerd, actief in paars (zoals vroeger) */
.r4dp-product-inhoud .woocommerce-tabs {
	background: #27202C;
	border-radius: 0;
	padding: 0 40px 40px;
	margin-top: 40px;
}
.r4dp-product-inhoud .woocommerce-tabs ul.tabs {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin: 0 -40px 30px !important;
	padding: 30px 20px !important;
	border-bottom: 1px solid #38303D;
}
.r4dp-product-inhoud .woocommerce-tabs ul.tabs::before,
.r4dp-product-inhoud .woocommerce-tabs ul.tabs li::before,
.r4dp-product-inhoud .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}
.r4dp-product-inhoud .woocommerce-tabs ul.tabs li {
	background: none !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.r4dp-product-inhoud .woocommerce-tabs ul.tabs li a {
	color: #fff !important;
	font-size: 18px;
	font-weight: 600;
	padding: 0 !important;
}
.r4dp-product-inhoud .woocommerce-tabs ul.tabs li.active a,
.r4dp-product-inhoud .woocommerce-tabs ul.tabs li a:hover {
	color: #884EAA !important;
}
.r4dp-product-inhoud .woocommerce-Tabs-panel {
	color: #C1C1C1;
}
.r4dp-product-inhoud .woocommerce-Tabs-panel h2,
.r4dp-product-inhoud .woocommerce-Tabs-panel h3 {
	color: #fff;
}
.r4dp-product-inhoud .woocommerce-Tabs-panel a {
	color: #A3FF00;
}
.r4dp-product-inhoud table.shop_attributes,
.r4dp-product-inhoud table.shop_attributes th,
.r4dp-product-inhoud table.shop_attributes td {
	border-color: #38303D !important;
	background: transparent !important;
	color: #C1C1C1;
}
.r4dp-product-inhoud table.shop_attributes th {
	color: #fff;
}
.r4dp-product-inhoud #reviews #comments ol.commentlist li .comment-text {
	border-color: #38303D;
}

/* Productfoto sticky naast de samenvatting (stopt waar de samenvatting stopt, niet over de tabbladen). */
@media (min-width: 1025px) {
	.r4dp-product-inhoud div.product {
		display: grid;
		grid-template-columns: 36% minmax(0, 1fr);
		column-gap: 4%;
	}
	.r4dp-product-inhoud div.product::before,
	.r4dp-product-inhoud div.product::after {
		display: none;
	}
	.r4dp-product-inhoud div.product > * {
		grid-column: 1 / -1;
	}
	.r4dp-product-inhoud div.product > .r4dp-galerijcel {
		grid-column: 1;
		grid-row: 1;
	}
	.r4dp-product-inhoud div.product > .summary {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
		float: none !important;
		width: auto !important;
		margin: 0 !important;
	}
	.r4dp-product-inhoud .r4dp-galerijcel > .woocommerce-product-gallery {
		float: none !important;
		width: auto !important;
		margin: 0 0 35px !important;
		position: sticky !important; /* WooCommerce zet position: relative met een specifiekere selector */
		top: calc(var(--r4dp-kop-onder) + 20px);
		z-index: 1;
	}
}
@media (max-width: 1024px) {
	.r4dp-product-inhoud .woocommerce-product-gallery,
	.r4dp-product-inhoud div.product div.summary {
		float: none !important;
		width: 100% !important;
	}
	.r4dp-product-inhoud .woocommerce-tabs {
		padding: 0 18px 24px;
	}
	.r4dp-product-inhoud .woocommerce-tabs ul.tabs {
		gap: 18px;
		flex-wrap: wrap;
		margin: 0 -18px 20px !important;
	}
}

/* ---------- Gerelateerde producten en upsells: dezelfde kaarten als in de shop ---------- */
.r4dp-kaartenrij {
	margin-top: 50px;
}
.r4dp-kaartenrij > h2 {
	color: #fff;
	font-size: 36px;
	margin: 0 0 24px;
}
.r4dp-pk-raster {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
@media (max-width: 1280px) {
	.r4dp-pk-raster {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.r4dp-pk-raster {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.r4dp-kaartenrij > h2 {
		font-size: 26px;
	}
}

/* Voorraad + levertijd als paarse balk (zoals vroeger) */
.r4dp-product-inhoud .summary p.stock {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	width: 100%;
	margin: 16px 0;
	padding: 9px 16px;
	background: #884EAA;
	color: #1B1B1B !important;
	font-size: 14px;
	font-weight: 500;
	border-radius: 2px;
}
.r4dp-product-inhoud .summary p.stock .wclt_lead_time {
	color: #1B1B1B !important;
}
.r4dp-product-inhoud .summary p.stock .lead-time-separator {
	margin-right: 12px;
	opacity: .45;
}
.r4dp-product-inhoud .summary p.stock.out-of-stock {
	background: #D84424;
}

/* Verlanglijst (JetCompareWishlist): lime hartje + witte tekst, zoals vroeger */
.r4dp-product-inhoud .jet-wishlist-button__container {
	margin: 4px 0 18px;
}
.r4dp-product-inhoud .jet-wishlist-button__link {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	color: #fff !important;
	font-size: 16px;
	box-shadow: none !important;
}
.r4dp-product-inhoud .jet-wishlist-button__link:hover {
	color: #A3FF00 !important;
}
.r4dp-product-inhoud .jet-wishlist-button__link::before {
	content: "";
	flex: 0 0 22px;
	height: 20px;
	background: #A3FF00;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-8.5-5.3-10.6-10.4C-.1 6.4 2.6 2 6.7 2c2.3 0 4 1.2 5.3 3 1.3-1.8 3-3 5.3-3 4.1 0 6.8 4.4 5.3 8.6C20.5 15.7 12 21 12 21z' fill='none' stroke='black' stroke-width='2'/%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 22'%3E%3Cpath d='M12 21s-8.5-5.3-10.6-10.4C-.1 6.4 2.6 2 6.7 2c2.3 0 4 1.2 5.3 3 1.3-1.8 3-3 5.3-3 4.1 0 6.8 4.4 5.3 8.6C20.5 15.7 12 21 12 21z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.r4dp-product-inhoud .jet-wishlist-button__link.added-to-wishlist::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21s-8.5-5.3-10.6-10.4C-.1 6.4 2.6 2 6.7 2c2.3 0 4 1.2 5.3 3 1.3-1.8 3-3 5.3-3 4.1 0 6.8 4.4 5.3 8.6C20.5 15.7 12 21 12 21z'/%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 22'%3E%3Cpath d='M12 21s-8.5-5.3-10.6-10.4C-.1 6.4 2.6 2 6.7 2c2.3 0 4 1.2 5.3 3 1.3-1.8 3-3 5.3-3 4.1 0 6.8 4.4 5.3 8.6C20.5 15.7 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.r4dp-product-inhoud .jet-wishlist-button__plane {
	background: none !important;
	border: 0 !important;
}

/* Zijbalk zo breed als vroeger (420px) zodat de koppen op één regel passen */
@media (min-width: 1281px) {
	.r4dp-productpagina .e-con.r4dp-product-zijbalk {
		--width: 420px;
		flex: 0 0 420px;
	}
}
