/* Product layout refinements; retain the existing fonts and design tokens. */
.j4f-product-page div.product .summary .product_title {
	font-size: calc(clamp(2.5rem, 4.2vw, 4rem) * var(--j4f-heading-scale, 1) * .92);
}
.j4f-product-page div.product .summary .j4f-price-availability-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin: 1rem 0;
	max-width: 100%;
}
.j4f-product-page div.product .summary .j4f-price-availability-row > .price,
.j4f-product-page div.product .summary .j4f-price-availability-row > .j4f-label-view {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	overflow-wrap: anywhere;
}
.j4f-product-page .summary .j4f-price-availability-row .j4f-label-list,
.j4f-product-page .summary .j4f-price-availability-row .j4f-label-note { margin: 0; }
.j4f-product-page div.product div.images .woocommerce-product-gallery__wrapper {
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	overflow: visible;
}
.j4f-product-page div.product div.images .flex-viewport,
.j4f-product-page div.product div.images > .woocommerce-product-gallery__wrapper {
	border: 1px solid var(--j4f-box-border, #e9e2ed);
	border-radius: 1.4rem;
	background: #fff;
	box-sizing: border-box;
	overflow: hidden;
}
.j4f-product-page div.product .woocommerce-product-gallery__image a {
	padding: 1.25rem;
	box-sizing: border-box;
}
.j4f-product-page div.product .woocommerce-product-gallery__image a > img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	object-position: center;
	border-radius: .5rem;
}
.j4f-product-page div.product div.images .flex-control-thumbs {
	flex-wrap: wrap;
}
.j4f-product-page div.product div.images .flex-control-thumbs li {
	width: calc((100% - 1.5rem) / 3);
	box-sizing: border-box;
}
.j4f-product-page div.product div.images .flex-control-thumbs img {
	object-fit: contain;
}
/* Let the video column determine the desktop image-and-thumbnails height. */
@media (min-width: 761px) {
	.j4f-product-page div.product:has(.summary .j4f-product-videos--tabs) > div.images {
		display: grid;
		grid-template-rows: minmax(0, 1fr) auto;
		contain: size;
		min-height: 0;
		align-self: stretch;
		margin-bottom: 20px;
	}
	.j4f-product-page div.product:has(.summary .j4f-product-videos--tabs) > div.images .flex-viewport {
		/* FlexSlider writes a square height inline; retain its slide navigation. */
		height: 100% !important;
		min-height: 0;
	}
	.j4f-product-page div.product:has(.summary .j4f-product-videos--tabs) > div.images .woocommerce-product-gallery__wrapper,
	.j4f-product-page div.product:has(.summary .j4f-product-videos--tabs) > div.images .woocommerce-product-gallery__image,
	.j4f-product-page div.product:has(.summary .j4f-product-videos--tabs) > div.images .woocommerce-product-gallery__image a {
		height: 100%;
	}
	.j4f-product-page div.product:has(.summary .j4f-product-videos--tabs) > div.images .woocommerce-product-gallery__image a > img {
		height: 100%;
		aspect-ratio: auto;
		object-fit: contain;
	}
}
.j4f-product-page .summary .j4f-product-specs--core {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .65rem;
	background: transparent;
	overflow: visible;
	padding: 0;
	margin: 1.5rem 0 .75rem;
}
.j4f-product-page .summary .j4f-product-specs > .j4f-product-spec {
	border: 1px solid var(--j4f-box-border, #e9e2ed);
	border-radius: .7rem;
	background: #faf8fc;
	background: color-mix(in srgb, var(--j4f-box-bg, #fff) 94%, #74289a 6%);
	min-width: 0;
	padding: .8rem;
	text-align: left;
	box-sizing: border-box;
}
.j4f-product-page .summary .j4f-product-specs--core > .j4f-product-spec {
	grid-column: auto;
}
.j4f-product-page .summary .j4f-product-specs--extra {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: .75rem 0 0;
	gap: .65rem;
	background: transparent;
	overflow: visible;
}
.j4f-product-page .summary .j4f-product-specs--extra .j4f-product-spec--sku {
	background: transparent;
	border: 0;
	padding: .35rem 0;
}
.j4f-product-page div.product > .j4f-product-details {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: clamp(1.5rem, 4vw, 3rem);
	width: 100%;
	min-width: 0;
	margin: .5rem 0 0;
}
.j4f-product-details > article {
	min-width: 0;
	overflow-wrap: anywhere;
}
.j4f-product-details .j4f-product-details__heading {
	color: var(--j4f-heading-color, #61187c);
	font-size: calc(1.65rem * var(--j4f-heading-scale, 1));
	line-height: 1.2;
	margin: 0 0 1.1rem;
}
.j4f-product-description > :last-child { margin-bottom: 0; }
.j4f-product-characteristics table.shop_attributes {
	border: 1px solid var(--j4f-box-border, #e9e2ed);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: .8rem;
	overflow: hidden;
	width: 100%;
	margin: 0;
}
.j4f-product-characteristics table.shop_attributes th,
.j4f-product-characteristics table.shop_attributes td {
	padding: .75rem .9rem;
	border: 0;
	border-bottom: 1px solid var(--j4f-box-border, #e9e2ed);
	font-style: normal;
	text-align: left;
	vertical-align: top;
	color: var(--j4f-box-text, #271734);
	background: var(--j4f-box-bg, #fff);
	overflow-wrap: anywhere;
}
.j4f-product-characteristics table.shop_attributes th { width: 35%; }
.j4f-product-characteristics table.shop_attributes tr:last-child > * { border-bottom: 0; }
.j4f-product-characteristics table.shop_attributes td p { margin: 0; }
.j4f-product-page div.product > .j4f-product-extra-tab { grid-column: 1 / -1; }
@media (max-width: 760px) {
	.j4f-product-page div.product > .j4f-product-details { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
	.j4f-product-page div.product .woocommerce-product-gallery__image a { padding: .8rem; }
	.j4f-product-page .summary .j4f-product-specs > .j4f-product-spec { padding: .65rem .5rem; }
}
@media (max-width: 420px) {
	.j4f-product-page .summary .j4f-product-specs--core { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
}
@media (max-width: 280px) {
	.j4f-product-page .summary .j4f-product-specs--core { grid-template-columns: minmax(0, 1fr); }
	.j4f-product-characteristics table.shop_attributes th { width: 40%; }
}
