/**
 * Single product page.
 *
 * Two column summary (gallery left, details right), collapsible spec and
 * brochure panels, then full width Related Products and FAQ sections.
 */

:root {
	--rise-green: #145a3d;
	--rise-green-accent: #2da56e;
	--rise-green-dark: #0f3d2e;
	--rise-ink: #1a1a1a;
	--rise-muted: #6a7a70;
	--rise-line: #e3dbd1;
	--rise-cream: #fbf7ef;
}

/* ---------- Product gallery ---------- */
/*
 * NOTE: nothing here is scoped to a body class. header.php prints a bare
 * <body> with no body_class(), so `body.single-product` never matches. This
 * stylesheet is only enqueued on single product pages, so the element
 * selectors are already specific enough.
 *
 * The theme sets width/height/margin on `.product img` with !important, so the
 * gallery image needs the same weight to fill its column.
 */
/*
 * Every main image sits in the same 4:3 frame, so products with portrait and
 * landscape photos still line up with the details column. `contain` means
 * nothing is ever cropped — the photo is letterboxed inside the frame instead.
 */
div.product .woocommerce-product-gallery__image,
div.product .woocommerce-product-gallery__image > a {
	display: block;
	aspect-ratio: 4 / 3;
	line-height: 0;
}

/* style.css paints the slide `#dddd` with an 8px radius; with the card padding
 * gone that grey would show around the photo, so it is cleared. */
div.product .woocommerce-product-gallery__image {
	background: transparent;
	border-radius: 12px;
}

/*
 * min-height is reset because style.css sets `min-height: 300px !important` on
 * `.product_img12 .woocommerce-product-gallery__image img`, which would override
 * the frame height above.
 */
div.product .woocommerce-product-gallery__image img {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	border-radius: 12px;
	object-fit: contain !important;
	max-height: 100% !important;
}

/*
 * Hover zoom is turned off in PHP (see rise_single_product_setup). This is only
 * a safety net: if another plugin re-enables it, jQuery Zoom appends a
 * `.zoomImg` sized to the image's natural pixels with inline
 * `max-width/max-height: none`, which would break out of the frame above. The
 * rule above cannot catch it because the plugin sets those inline.
 */
div.product .woocommerce-product-gallery img.zoomImg {
	display: none !important;
}

/*
 * The gallery element also carries `.product_img12`, whose inline rule in
 * header.php wraps it in a 30px grey card. That inline <style> is printed after
 * wp_head(), so it wins on load order — hence !important here.
 */
div.product .woocommerce-product-gallery,
div.product .product_img12 {
	padding: 0 !important;
	background: transparent !important;
}

/*
 * FlexSlider gives the viewport an inline pixel height sized to the largest
 * slide, which leaves dead space under a short image.
 */
div.product .woocommerce-product-gallery,
div.product .woocommerce-product-gallery__wrapper,
div.product .flex-viewport {
	height: auto !important;
	min-height: 0 !important;
}

/*
 * Thumbnail strip under the main image. FlexSlider only builds this when the
 * product has more than one image. It scrolls horizontally — drag the scrollbar
 * on desktop, swipe on touch.
 *
 * Snapping is `proximity` rather than `mandatory`, which would fight a scrollbar
 * drag by yanking the strip to the nearest thumb.
 */
div.product .flex-control-thumbs {
	display: flex !important;
	/* style.css forces flex-wrap: wrap here, which would stack the thumbs into
	 * rows instead of one scrollable row. */
	flex-wrap: nowrap !important;
	gap: 10px;
	margin: 14px 0 0 !important;
	/* Bottom padding keeps the scrollbar clear of the thumbnails. */
	padding: 0 0 10px !important;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	/* Slim tinted scrollbar instead of the chunky OS default. Firefox reads the
	 * two properties below; Chromium and Safari use the ::-webkit rules. */
	scrollbar-width: thin;
	scrollbar-color: var(--rise-line) transparent;
}

div.product .flex-control-thumbs::-webkit-scrollbar {
	height: 6px;
}

div.product .flex-control-thumbs::-webkit-scrollbar-track {
	background: transparent;
}

div.product .flex-control-thumbs::-webkit-scrollbar-thumb {
	background: var(--rise-line);
	border-radius: 999px;
}

div.product .flex-control-thumbs::-webkit-scrollbar-thumb:hover {
	background: var(--rise-muted);
}

/* style.css makes each thumb a 50px circle with its own border and clips the
 * image to it — reset so the square framing below applies. */
/*
 * One variable drives the square, so a breakpoint only has to change the size
 * once. height is pinned with min/max as well: style.css sets a 50px height on
 * `.product_img12 .flex-control-thumbs li` at the same specificity as this rule,
 * and if that ever wins the load-order race the thumb turns into a rectangle.
 */
div.product .flex-control-thumbs li {
	--rise-thumb-size: 76px;
	flex: 0 0 var(--rise-thumb-size);
	width: var(--rise-thumb-size) !important;
	height: var(--rise-thumb-size) !important;
	min-height: var(--rise-thumb-size) !important;
	max-height: var(--rise-thumb-size) !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	overflow: visible !important;
	scroll-snap-align: start;
}

/*
 * `li img` rather than just `img`, so this outranks the site-wide
 * `.product img` rules. Two of those actively break the strip: style.css sets
 * `height: auto !important`, and style3.css sets `min-width: 140px` inside its
 * under-768px block — a 140px floor on a 58px thumb, which is what turned the
 * mobile thumbnails into rectangles. min-width has to be reset explicitly,
 * because not declaring a property means the other rule simply wins.
 */
div.product .flex-control-thumbs li img {
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
	padding: 2px;
	background: #fff;
	border: 1px solid var(--rise-line);
	border-radius: 8px;
	object-fit: contain;
	opacity: .55;
	cursor: pointer;
	transition: opacity .2s ease, border-color .2s ease;
}

div.product .flex-control-thumbs li img:hover,
div.product .flex-control-thumbs li img.flex-active {
	opacity: 1;
	border-color: var(--rise-green-accent);
}

@media (min-width: 992px) {
	/*
	 * html/body carry overflow-x: hidden, which turns body into a scroll
	 * container and stops position: sticky from ever activating. `clip` still
	 * prevents sideways scrolling but leaves sticky working.
	 */
	body {
		overflow-x: clip;
	}

	/*
	 * Any ancestor with a non-visible overflow becomes the sticky scrollport and
	 * stops the gallery from ever sticking, so the wrappers between body and the
	 * product are cleared too.
	 */
	.main-bg,
	.main-bg .container,
	.main-bg .container-fluid,
	#primary,
	#main,
	#content,
	.site-main,
	.woocommerce,
	div.product {
		overflow: visible !important;
	}

	/*
	 * Flex row instead of WooCommerce's floats. Floats let the sections below
	 * ride up alongside the gallery, which is what made the FAQ heading render
	 * underneath the image.
	 */
	.rise-product-main {
		display: flex;
		align-items: flex-start;
		gap: 4%;
	}

	.rise-product-main div.images,
	.rise-product-main .woocommerce-product-gallery {
		width: 48% !important;
		max-width: 48% !important;
		flex: 0 0 48% !important;
		float: none !important;
		margin: 0 !important;
	}

	.rise-product-main .summary {
		width: 48% !important;
		max-width: 48% !important;
		flex: 1 1 48% !important;
		float: none !important;
		margin: 0 !important;
	}

	/*
	 * Sticky inside .rise-product-main, so the image releases as soon as the
	 * details column ends and never travels into the sections below.
	 * --rise-sticky-top is measured from #main-site-header + 20px in JS; the
	 * fallback only applies if that script has not run.
	 */
	.rise-product-main .woocommerce-product-gallery,
	.rise-product-main div.images {
		position: sticky !important;
		top: var(--rise-sticky-top, 110px);
		align-self: flex-start;
	}
}

/* ---------- Summary column blocks ---------- */
.rise-product-taxonomy {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0 0 18px;
	font-size: .9rem;
	color: var(--rise-muted);
}

.rise-product-taxonomy a {
	color: var(--rise-green-accent);
	text-decoration: none;
}

.rise-product-taxonomy a:hover {
	color: var(--rise-green);
	text-decoration: underline;
}

.rise-product-block__body {
	font-size: .95rem;
	line-height: 1.7;
	color: var(--rise-muted);
}

.rise-product-block__body p:last-child {
	margin-bottom: 0;
}

.rise-product-list {
	margin: 0;
	padding-left: 20px;
	font-size: .92rem;
	line-height: 1.75;
	color: var(--rise-muted);
}

.rise-product-list li {
	margin-bottom: 4px;
}

.rise-product-list--numbered {
	list-style: decimal;
}

/* ---------- Buttons ---------- */
.rise-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 24px;
	border: 2px solid transparent;
	border-radius: 6px;
	font-weight: 700;
	font-size: .92rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.rise-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.rise-btn:active {
	transform: translateY(0);
}

.rise-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(45, 165, 110, .35);
}

/* Primary call to action — the Get a Quote button that replaces add to cart
 * while catalog mode is on. */
.rise-btn--solid {
	background-color: var(--rise-green);
	border-color: var(--rise-green);
	color: #fff;
}

.rise-btn--solid:hover {
	background-color: var(--rise-green-accent);
	border-color: var(--rise-green-accent);
	color: #fff;
	box-shadow: 0 6px 18px rgba(45, 165, 110, .3);
}

.rise-quote-cta {
	margin: 0 0 22px;
}

.rise-btn--outline {
	background-color: #fff;
	border-color: var(--rise-green-accent);
	color: var(--rise-green);
}

.rise-btn--outline:hover {
	background-color: var(--rise-green-accent);
	border-color: var(--rise-green-accent);
	color: #fff;
	box-shadow: 0 6px 18px rgba(45, 165, 110, .30);
}

/* ---------- Accordions ---------- */
.rise-accordion {
	border-top: 1px solid var(--rise-line);
}

/* Closing line under the group, whichever way the summary column ends. */
.rise-accordion:last-of-type,
.rise-accordion:last-child {
	border-bottom: 1px solid var(--rise-line);
}

.rise-accordion__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 2px;
	background: none;
	border: none;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--rise-green-dark);
	text-align: left;
	cursor: pointer;
}

.rise-accordion__toggle:hover .rise-accordion__title {
	color: var(--rise-green-accent);
}

.rise-accordion__toggle:focus-visible {
	outline: 2px solid var(--rise-green-accent);
	outline-offset: 2px;
}

/* Chevron drawn with borders so no icon font is needed */
.rise-accordion__icon {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--rise-muted);
	border-bottom: 2px solid var(--rise-muted);
	transform: rotate(45deg);
	transform-origin: center;
	transition: transform .2s ease;
	margin-top: -4px;
}

.rise-accordion.is-open .rise-accordion__icon {
	transform: rotate(-135deg);
	margin-top: 4px;
}

/*
 * Animated open/close. The panel owns the height transition and clips its
 * content; the padding lives on the inner wrapper so a closed panel collapses
 * to exactly zero height.
 */
.rise-accordion__panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
}

/*
 * The panel rendered open by PHP needs a height before any JS runs. Once the
 * script takes over it sets max-height inline, which wins over this.
 */
.rise-accordion.is-open .rise-accordion__panel {
	max-height: none;
}

.rise-accordion__inner {
	padding: 0 2px 18px;
}

@media (prefers-reduced-motion: reduce) {
	.rise-accordion__panel,
	.rise-faqs__answer,
	.rise-faqs__marker::after {
		transition: none;
	}
}

.rise-spec-heading {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--rise-green);
}

.rise-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9rem;
}

.rise-spec-table th,
.rise-spec-table td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--rise-line);
	text-align: left;
	vertical-align: top;
}

.rise-spec-table th {
	width: 40%;
	font-weight: 600;
	color: var(--rise-green-dark);
	background: var(--rise-cream);
}

.rise-spec-table td {
	color: var(--rise-muted);
}

.rise-brochure-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rise-brochure-list li + li {
	margin-top: 6px;
}

.rise-brochure-list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .92rem;
	color: var(--rise-green);
	text-decoration: none;
}

.rise-brochure-list a:hover {
	color: var(--rise-green-accent);
	text-decoration: underline;
}

/* ---------- Shared section heading ---------- */
.rise-section-title {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--rise-green-dark);
	margin: 0 0 26px;
}

/* ---------- Related products ---------- */
/* clear guards against any remaining float above these full width sections. */
.rise-related,
.rise-faqs {
	clear: both;
	width: 100%;
}

/* Bottom padding has to clear the button's hover lift (-2px) and its 18px
 * shadow, otherwise the row reads as clipped against the FAQ section below. */
.rise-related {
	padding: 56px 0 64px;
}

.rise-related__inner,
.rise-faqs__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 16px;
}

.rise-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.rise-related__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/*
 * Every thumbnail sits in the same square frame so all four cards are the same
 * height and the titles and buttons line up. `contain` means nothing is ever
 * cropped — a portrait or landscape photo is letterboxed inside the frame, the
 * same treatment the main gallery uses.
 */
.rise-related__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	/* The frame is a flex item, and a flex item's automatic min-height lets it
	 * grow to its content — that beats the aspect ratio and gives every card a
	 * different height. min-height: 0 keeps the square, overflow is a backstop. */
	min-height: 0;
	overflow: hidden;
	margin-bottom: 16px;
	padding: 14px;
	background: var(--rise-cream);
	border-radius: 12px;
	line-height: 0;
}

/*
 * These need !important to beat the site-wide `.product img` rules that apply
 * here because wc_product_class() puts `.product` on the page wrapper:
 * `max-height: 150px !important` (header.php inline), plus
 * `height: auto !important` and a forced `margin: 0 auto 15px` in style.css.
 * Left alone they give every card a different height and double the gap under
 * the image.
 *
 * Constrained with max-width/max-height rather than width/height: a percentage
 * height resolves against an indefinite height and falls back to auto, which
 * is what let the natural image height stretch the frame out of square.
 */
div.product .rise-related__image img {
	display: block;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 100% !important;
	/* style3.css puts `min-width: 140px` on `.product img` under 768px, which
	 * pushes these past their card in the two column mobile grid. */
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	object-fit: contain;
}

/* Two lines' worth of space keeps the button row level whether a title wraps
 * or not, so the gap above the button stays even across the grid. */
.rise-related__title {
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.45;
	min-height: calc(2 * 1.45em);
	margin: 0 0 16px;
}

.rise-related__title a {
	color: var(--rise-ink);
	text-decoration: none;
}

.rise-related__title a:hover {
	color: var(--rise-green-accent);
}

/* Push every button to the same baseline regardless of title length */
.rise-related__item .rise-btn {
	margin-top: auto;
	border-bottom: 1px solid !important;
}

/* ---------- Custom HTML block ---------- */
/* Shares the inner width of the sections above so it lines up with them. */
.rise-custom-html {
	clear: both;
	width: 100%;
	padding: 0 0 64px;
}

.rise-custom-html__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------- FAQs ---------- */
.rise-faqs {
	padding: 56px 0 64px;
}

.rise-faqs__eyebrow {
	margin: 0 0 6px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--rise-green-accent);
	text-align: center;
}

.rise-faqs .rise-section-title {
	margin-bottom: 34px;
	text-align: center;
}

.rise-faqs__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.rise-faqs__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Nudges the answer's cap height onto the first question's text baseline */
.rise-faqs__answers {
	padding-top: 2px;
}

.rise-faqs__question {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 12px 16px;
	line-height: 1.45;
	background: #fff;
	border: 1px solid var(--rise-line);
	border-radius: 6px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--rise-ink);
	text-align: left;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.rise-faqs__question:hover {
	border-color: var(--rise-green-accent);
	color: var(--rise-green);
}

.rise-faqs__question.is-active {
	background: var(--rise-green-accent);
	border-color: var(--rise-green-accent);
	color: #fff;
}

.rise-faqs__question:focus-visible {
	outline: 2px solid var(--rise-green-dark);
	outline-offset: 2px;
}

/* Circled arrow marker, drawn in CSS */
.rise-faqs__marker {
	position: relative;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--rise-green-accent);
}

.rise-faqs__marker::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: translate(-60%, -50%) rotate(45deg);
}

.rise-faqs__question.is-active .rise-faqs__marker {
	background: #fff;
}

.rise-faqs__question.is-active .rise-faqs__marker::after {
	border-color: var(--rise-green-accent);
}

.rise-faqs__answer-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--rise-ink);
	margin: 0 0 10px;
}

.rise-faqs__answer-body {
	font-size: .92rem;
	line-height: 1.65;
	color: var(--rise-muted);
}

.rise-faqs__answer-body p:last-child {
	margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.rise-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rise-faqs__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.rise-section-title {
		font-size: 1.6rem;
	}

	/*
	 * Under 992px the desktop flex row above no longer applies, but
	 * WooCommerce's own stylesheet still floats div.images at 48%. That left the
	 * gallery in a narrow column with the summary dropped underneath it and half
	 * the row empty, so both columns are reset to a clean stack here.
	 */
	.rise-product-main {
		display: block;
	}

	.rise-product-main div.images,
	.rise-product-main .woocommerce-product-gallery,
	.rise-product-main .summary {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		margin: 0 0 28px !important;
	}

	.rise-product-main .summary {
		margin-bottom: 0 !important;
	}
}

/*
 * Mobile FAQ accordion.
 *
 * display: contents lifts the questions and answers out of their two wrappers
 * so they all become grid items of .rise-faqs__layout, and the --rise-faq-i
 * index set in PHP interleaves them into question / answer / question / answer.
 * Collapsing needs no extra JS: the existing script already toggles the
 * `hidden` attribute on each answer.
 */
@media (max-width: 767px) {
	.rise-faqs__layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.rise-faqs__list,
	.rise-faqs__answers {
		display: contents;
	}

	.rise-faqs__question {
		order: calc(var(--rise-faq-i) * 2);
	}

	/*
	 * Height is animated by single-product.js, the same way the Specifications
	 * and Brochures panels above work. The padding sits on the body rather than
	 * here, so a closed panel collapses to exactly zero — padding on this
	 * element would stay visible at max-height: 0.
	 */
	.rise-faqs__answer {
		order: calc(var(--rise-faq-i) * 2 + 1);
		padding: 0;
		overflow: hidden;
		transition: max-height .35s ease;
	}

	.rise-faqs__answer-body {
		padding: 4px 16px 16px;
	}

	/* The question sits directly above as the accordion header, so repeating it
	 * inside the open panel is redundant. */
	.rise-faqs__answer-title {
		display: none;
	}

	/* Square off the join between an open question and its panel. */
	.rise-faqs__question.is-active {
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}

	/*
	 * Accordion behaviour, so the marker points down at the panel it opened.
	 * Only inside this breakpoint: on desktop the answer sits in the column to
	 * the right, where the default right-pointing chevron is what you want.
	 */
	.rise-faqs__marker::after {
		transition: transform .2s ease;
	}

	.rise-faqs__question.is-active .rise-faqs__marker::after {
		transform: translate(-50%, -65%) rotate(135deg);
	}
}

@media (max-width: 575px) {
	/*
	 * Two per row on phones as well. The cards fill their columns, so the only
	 * horizontal space left is the gap between the pair — the 320px cap that
	 * used to sit here centred a single card and left wide margins either side.
	 * The square image frame plus the two-line title reserve are what keep the
	 * two cards the same height.
	 */
	/* Side padding off, so the pair of cards runs edge to edge and the only
	 * horizontal space left is the gap between them. The heading keeps its own
	 * inset — flush against the viewport edge it reads as broken. */
	.rise-related__inner {
		padding: 0;
	}

	.rise-related .rise-section-title {
		padding: 0 16px;
	}

	.rise-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	/* Cards are roughly half a phone wide now, so the frame gives back some of
	 * its inset to the photo. */
	.rise-related__image {
		padding: 10px;
		margin-bottom: 12px;
	}

	.rise-related__title {
		font-size: .85rem;
		margin-bottom: 12px;
	}

	.rise-related__item .rise-btn {
		width: 100%;
		padding: 9px 12px;
		font-size: .82rem;
	}

	.rise-spec-table th {
		width: 50%;
	}

	/* 76px thumbs only fit three at a time on a 375px screen. Smaller ones show
	 * enough of the strip to make it obvious there is more to swipe to. */
	div.product .flex-control-thumbs li {
		--rise-thumb-size: 58px;
	}

	div.product .flex-control-thumbs {
		gap: 8px;
	}

	/*
	 * header.php sizes the title at 34px, dropping to 26px under 768px, and
	 * leaves the price at 28px — so on a phone the price ends up larger than the
	 * heading above it. Both are scaled down here, with the title kept the
	 * bigger of the two. The selectors carry an extra element to outrank
	 * `.entry.product .product_title`, which is more specific than it looks.
	 */
	div.product .summary .product_title {
		font-size: 1.25rem;
		line-height: 1.3;
		margin-bottom: 10px;
	}

	div.product .summary .price {
		font-size: 1.15rem;
		margin-bottom: 14px;
	}

}

.woocommerce-product-gallery .woocommerce-product-gallery__image:first-child img.wp-post-image {
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

div.product .woocommerce-product-gallery__image {
    background-color: #fbf7ef;
    padding: 30px 0px 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  
}

div.product .woocommerce-product-gallery__image a {
    height: 100%;
    width: 100%;
}