/**
 * Golf 4 — productdetail visuele basis, uitsluitend WooCommerce single-product.
 * Selectors target body.single-product directly: .woocommerce is often a\n * body class, not a descendant wrapper, on WooCommerce single products.\n
 * Eén max 1280px raster, dezelfde B&J typografie en acties als de productkaarten.
 * Native WooCommerce data, gallery, form, prijs en tabs blijven functioneel.
 */
body.single-product #primary {
	width: 100%;
	max-width: none;
}
body.single-product #primary > .site-main {
	width: calc(100% - 56px);
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 0 88px;
	box-sizing: border-box;
}
body.single-product div.product {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	color: var(--bj-ui-ink, #063649);
}
body.single-product div.product div.images {
	float: left;
	width: 55%;
	margin: 0 0 36px;
}
body.single-product div.product div.summary {
	float: right;
	width: 41%;
	min-width: 0;
	margin: 0 0 36px;
}
/* One continuous subtle border around the large gallery image, never
   around individual FlexSlider slides. All image letterboxing stays #ffffff,
   regardless of the uploaded image aspect ratio. */
body.single-product div.product div.images,
body.single-product div.product div.images .woocommerce-product-gallery__wrapper,
body.single-product div.product div.images .woocommerce-product-gallery__image,
body.single-product div.product div.images .woocommerce-product-gallery__image a,
body.single-product div.product div.images .woocommerce-product-gallery__image img {
	background-color: #ffffff;
}
body.single-product div.product div.images .flex-viewport {
	overflow: hidden;
	border: 1px solid #e5e3de;
	border-radius: 12px;
	background-color: #ffffff;
	box-sizing: border-box;
}
body.single-product div.product div.images .woocommerce-product-gallery__image {
	overflow: hidden;
	border: 0;
	border-radius: 0;
}
body.single-product div.product div.images .woocommerce-product-gallery__image a {
	display: block;
}
body.single-product div.product div.images .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	margin: 0;
	background-color: #ffffff;
}
/* A single-frame product is rendered without the FlexSlider viewport. */
body.single-product div.product div.images:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper {
	overflow: hidden;
	border: 1px solid #e5e3de;
	border-radius: 12px;
	background-color: #ffffff;
	box-sizing: border-box;
}

/* Use B&J's dark navy text color for the WooCommerce gallery zoom icon.
   Keep the trigger and zoom behavior untouched; Woo's magnifier is drawn
   with pseudo elements in most theme versions. */
body.single-product div.product div.images .woocommerce-product-gallery__trigger {
	color: #063649;
}
body.single-product div.product div.images .woocommerce-product-gallery__trigger::before {
	border-color: #063649;
}
body.single-product div.product div.images .woocommerce-product-gallery__trigger::after {
	background-color: #063649;
}
body.single-product div.product div.images .woocommerce-product-gallery__trigger:hover,
body.single-product div.product div.images .woocommerce-product-gallery__trigger:focus-visible {
	color: #063649;
}
body.single-product div.product div.images .woocommerce-product-gallery__trigger:hover::before,
body.single-product div.product div.images .woocommerce-product-gallery__trigger:focus-visible::before {
	border-color: #063649;
}
body.single-product div.product div.images .woocommerce-product-gallery__trigger:hover::after,
body.single-product div.product div.images .woocommerce-product-gallery__trigger:focus-visible::after {
	background-color: #063649;
}
body.single-product div.product div.images .woocommerce-product-gallery__trigger:focus-visible {
	outline: 2px solid var(--bj-ui-action, #007aa6);
	outline-offset: 3px;
}

/* Existing product detail presentation continues below. */
body.single-product div.product .summary .bj-single-product__sku {
	display: block;
	margin: 3px 0 10px;
	color: var(--bj-ui-ink, #063649);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
body.single-product div.product .summary h1.product_title,
body.single-product div.product .summary .product_title.entry-title {
	margin: 0 0 14px;
	padding: 0;
	color: var(--bj-ui-ink, #063649);
	font-size: clamp(26px, 2.3vw, 32px);
	font-weight: 650;
	line-height: 1.16;
	letter-spacing: -.022em;
	overflow-wrap: break-word;
}
body.single-product div.product .summary p.price,
body.single-product div.product .summary span.price {
	margin: 0 0 5px;
	font-size: clamp(22px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.3;
}
body.single-product div.product .summary .bj-product-vat-note {
	margin: 0 0 20px;
	font-size: 13px;
}
body.single-product div.product .summary .woocommerce-product-details__short-description {
	margin: 16px 0 22px;
	color: var(--bj-ui-ink, #063649);
	font-size: 15px;
	line-height: 1.65;
}
body.single-product div.product .summary .woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}
body.single-product div.product .summary form.cart {
	display: block;
	margin: 0 0 20px;
	padding: 0;
}
body.single-product div.product .summary form.cart .bj-qty-info {
	margin: 20px 0 10px;
}
body.single-product div.product .related,
body.single-product div.product .upsells {
	clear: both;
	margin-top: 42px;
}
body.single-product div.product .related > h2,
body.single-product div.product .upsells > h2 {
	color: var(--bj-ui-ink, #063649);
	font-size: 26px;
	line-height: 1.3;
	font-weight: 650;
}

/* Flight Deck chapter 03: short factual rows ahead of the action. */
body.single-product div.product .summary .bj-single-product__facts {
	margin: 20px 0 22px;
	padding: 15px 0 13px;
	border-top: 1px solid #e5e3de;
	border-bottom: 1px solid #e5e3de;
	color: var(--bj-ui-ink, #063649);
}
body.single-product div.product .summary .bj-single-product__facts h2 {
	margin: 0 0 10px;
	color: var(--bj-ui-ink, #063649);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}
body.single-product div.product .summary .bj-single-product__facts-list {
	margin: 0;
}
body.single-product div.product .summary .bj-single-product__fact {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: baseline;
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px dashed #e9e7e2;
	font-size: 14px;
	line-height: 1.5;
}
body.single-product div.product .summary .bj-single-product__fact:last-child {
	border-bottom: 0;
}
body.single-product div.product .summary .bj-single-product__fact dt {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--bj-ui-ink, #063649);
	font-weight: 400;
}
body.single-product div.product .summary .bj-single-product__fact dd {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--bj-ui-ink, #063649);
	text-align: right;
	font-weight: 600;
	overflow-wrap: anywhere;
}
/* Keep Woo's price and visitor VAT display, but align them as Flight Deck. */
body.single-product div.product .summary p.price {
	display: inline-block;
	margin: 0 7px 0 0;
	vertical-align: baseline;
}
body.single-product div.product .summary > .bj-product-vat-note {
	display: inline-block;
	margin: 0 5px 0 0;
	vertical-align: baseline;
	color: var(--bj-ui-ink, #063649);
	font-size: 13px;
}
body.single-product div.product .summary .bj-single-product__price-unit {
	display: inline-block;
	margin: 0;
	color: var(--bj-ui-ink, #063649);
	font-size: 13px;
	vertical-align: baseline;
}
body.single-product div.product .summary .woocommerce-product-details__short-description {
	clear: both;
}
/* Thumbnails are provided only when the product has actual media. */
body.single-product div.product div.images .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
body.single-product div.product div.images .flex-control-thumbs li {
	width: 64px;
	float: none;
	padding: 0;
}
body.single-product div.product div.images .flex-control-thumbs li img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	border: 1px solid #e5e3de;
	border-radius: 8px;
	padding: 4px;
	background: #fff;
	opacity: 1;
	box-sizing: border-box;
}
body.single-product div.product div.images .flex-control-thumbs li img.flex-active {
	border-color: var(--bj-ui-action, #007aa6);
}
/* FlexSlider makes these images clickable; Golf 4A also exposes them as
   keyboard buttons. Use the same highly visible focus as other B&J actions. */
body.single-product div.product div.images .flex-control-thumbs li img:focus-visible,
body.single-product div.product div.images .woocommerce-product-gallery__image a:focus-visible {
	outline: 2px solid var(--bj-ui-action, #007aa6);
	outline-offset: 3px;
}
body.single-product div.product div.images .flex-control-thumbs li img[role="button"] {
	cursor: pointer;
}

/* Golf 4 Flight Deck: product content follows the image and summary.
   Native Woo tab output is replaced with read-only, content-driven sections.
   Product descriptions, attributes and measurements remain owned by Woo.
*/
body.single-product div.product .bj-single-product__details {
	clear: both;
	width: 100%;
	margin: 8px 0 0;
	padding: 0;
	box-sizing: border-box;
}
body.single-product div.product .bj-single-product__detail-section {
	margin: 0;
	padding: 40px 0;
	border-top: 1px solid #e9e7e2;
}
body.single-product div.product .bj-single-product__detail-section > h2 {
	margin: 0 0 14px;
	color: var(--bj-ui-ink, #063649);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}
body.single-product div.product .bj-single-product__prose {
	max-width: 710px;
	color: var(--bj-ui-ink, #063649);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	overflow-wrap: break-word;
}
body.single-product div.product .bj-single-product__prose p {
	margin: 0 0 12px;
}
body.single-product div.product .bj-single-product__prose > :last-child {
	margin-bottom: 0;
}
body.single-product div.product .bj-single-product__specifications > h2 {
	margin-bottom: 26px;
}
body.single-product div.product .bj-single-product__spec-group {
	margin: 0 0 28px;
}
body.single-product div.product .bj-single-product__spec-group:last-child {
	margin-bottom: 0;
}
body.single-product div.product .bj-single-product__spec-group h3 {
	margin: 0 0 12px;
	color: var(--bj-ui-ink, #063649);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .045em;
	text-transform: uppercase;
}
body.single-product div.product .bj-single-product__spec-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0;
}
body.single-product div.product .bj-single-product__spec-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	min-width: 0;
	margin: 0;
	padding: 13px 0;
	border-bottom: 1px dashed #e9e7e2;
	font-size: 14px;
	line-height: 1.5;
}
body.single-product div.product .bj-single-product__spec-row dt,
body.single-product div.product .bj-single-product__spec-row dd {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}
body.single-product div.product .bj-single-product__spec-row dt {
	flex: 1 1 auto;
	color: var(--bj-ui-ink, #063649);
	font-weight: 400;
}
body.single-product div.product .bj-single-product__spec-row dd {
	flex: 0 1 auto;
	color: var(--bj-ui-ink, #063649);
	font-weight: 600;
	text-align: right;
}
/* The related area uses the very same .products and content-product.php
   card HTML/CSS as the assortment. Only the section heading is unique. */
body.single-product div.product .bj-single-product__related {
	clear: both;
	width: 100%;
	margin: 0;
	padding: 34px 0 18px;
	border-top: 1px solid #e9e7e2;
}
body.single-product div.product .bj-single-product__related > h2 {
	margin: 0 0 22px;
	color: var(--bj-ui-ink, #063649);
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.3;
}

/* Four equal catalogue cards per desktop row in full-width product
   recommendations; the archive sidebar grid deliberately remains three. */
body.single-product div.product .bj-catalog-related-results ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1023px) {
	body.single-product div.product .bj-catalog-related-results ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Override the two-column single-product rule on narrow phones.
   Keep the shared assortment card and its quantity controls unchanged. */
@media (max-width: 539px) {
	body.single-product div.product .bj-catalog-related-results ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 1024px) and (max-width: 1199px) {
	/* Four narrow cards fit the grid; let only their action row stack
	   rather than squeezing the add button below its readable width. */
	body.single-product div.product .bj-catalog-related-results .bj-catalog-action-row {
		flex-direction: column;
	}
	body.single-product div.product .bj-catalog-related-results .bj-catalog-qty-wrap {
		width: 100%;
	}
	body.single-product div.product .bj-catalog-related-results .bj-catalog-qty-wrap .quantity {
		flex: 1 1 auto;
	}
	body.single-product div.product .bj-catalog-related-results button.bj-catalog-add-to-reservation {
		flex: 0 0 auto;
		width: 100%;
	}
}


/* The single-product action matches the visible stepper height exactly.
   The short CTA text is supplied by B&J Productdata, not replaced by CSS. */
body.single-product div.product div.summary form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	row-gap: 10px;
}
body.single-product div.product div.summary form.cart:not(.variations_form) .bj-qty-info {
	flex: 0 0 100%;
	margin: 20px 0 0;
}
body.single-product div.product div.summary form.cart:not(.variations_form) .quantity:has(.bj-qty-button),
body.single-product div.product div.summary form.cart:not(.variations_form) button.single_add_to_cart_button.button {
	height: 46px;
	min-height: 46px;
	margin: 0;
	box-sizing: border-box;
}
body.single-product div.product div.summary form.cart:not(.variations_form) button.single_add_to_cart_button.button {
	min-width: 180px;
	padding: 8px 18px;
	white-space: nowrap;
}


@media (max-width: 639px) {
	body.single-product div.product .bj-single-product__detail-section {
		padding: 28px 0;
	}
	body.single-product div.product .bj-single-product__spec-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	body.single-product div.product .bj-single-product__spec-row {
		padding: 11px 0;
	}
}

/* On portrait tablets the 41% summary is narrower than the 154px
   quantity selector + 180px CTA + 8px gap. Stack the two hero columns
   before the action starts wrapping awkwardly; desktop layout stays intact. */
@media (min-width: 768px) and (max-width: 899px) {
	body.single-product div.product div.images,
	body.single-product div.product div.summary {
		float: none;
		width: 100%;
		margin: 0 0 25px;
	}
	/* Keep the product fully visible without consuming most of a portrait
	   tablet screen. Woo's native slider still owns thumbnail/zoom behavior. */
	body.single-product div.product div.images .woocommerce-product-gallery__image img {
		height: 420px;
		aspect-ratio: auto;
		object-fit: contain;
	}
}

@media (max-width: 767px) {
	body.single-product #primary > .site-main {
		width: calc(100% - 40px);
		padding: 20px 0 64px;
	}
	body.single-product div.product div.images,
	body.single-product div.product div.summary {
		float: none;
		width: 100%;
		margin: 0 0 25px;
	}
	body.single-product div.product .summary h1.product_title,
	body.single-product div.product .summary .product_title.entry-title {
		margin-bottom: 16px;
		font-size: clamp(28px, 6vw, 34px);
	}
}
@media (max-width: 479px) {
	body.single-product #primary > .site-main { width: calc(100% - 32px); }
	body.single-product div.product .summary form.cart .quantity:has(.bj-qty-button) {
		display: flex;
		width: 100%;
		max-width: 100%;
		margin: 0 0 10px;
	}
	body.single-product div.product .summary form.cart .quantity:has(.bj-qty-button) input.qty,
	body.single-product div.product .summary form.cart .quantity:has(.bj-qty-button) input.bj-qty-packages {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
		max-width: none;
	}
	body.single-product div.product .summary form.cart .single_add_to_cart_button {
		width: 100%;
	}
	body.single-product div.product div.summary form.cart:not(.variations_form) .quantity:has(.bj-qty-button) {
		margin: 0;
	}
	body.single-product div.product div.summary form.cart:not(.variations_form) button.single_add_to_cart_button.button {
		width: 100%;
	}
}
