/**
 * Single product page — PharmaHolland / anroy.nl
 *
 * WooCommerce's own stylesheets are dequeued in this theme and the bundle styles
 * only the archive loop, so every rule the classic single-product markup needs
 * lives here.
 *
 * Loop styles (ul.products, .product-card__*) are NOT restated — the related
 * products grid reuses them, so the grid keeps one source of truth.
 *
 * Everything is scoped to .single-product: `.product` is also the class on each
 * related-product <li>, and unscoped rules would break those cards.
 *
 * Pairs with woocommerce/content-single-product.php and inc/single-product.php,
 * but degrades to stock WooCommerce markup if those are not installed.
 */

/* ---------------------------------------------------------------- layout --- */

/*
 * Two-column fold.
 *
 * .product-single__layout is the wrapper added by the theme's
 * content-single-product.php. The :not(:has()) rule is the fallback for stock
 * WooCommerce markup, so the page is still laid out correctly if the template
 * override is not installed yet.
 */
.product-single__layout {
	display: grid;
	/* Summary takes the wider column: a square gallery otherwise dominates the
	   fold and pushes the buy panel into dead space. */
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
	gap: 2.5rem 3.5rem;
	align-items: start;
	margin: 1.5rem 0 3rem;
}

.single-product div.product:not(:has(.product-single__layout)) {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
	gap: 2.5rem 3.5rem;
	align-items: start;
	margin: 1.5rem 0 4rem;
}

/* Full-width rows below the two-column fold (fallback markup only). */
.single-product div.product:not(:has(.product-single__layout)) > .woocommerce-tabs,
.single-product div.product:not(:has(.product-single__layout)) > .related,
.single-product div.product:not(:has(.product-single__layout)) > .upsells {
	grid-column: 1 / -1;
}

/* Breadcrumb: full-width above the fold on stock markup, inside the summary
   column once inc/single-product.php relocates it. */
.single-product .woocommerce-breadcrumb {
	margin: 0 0 .85rem;
	font-size: .85rem;
	color: var(--color-text);
}

.single-product .woocommerce-breadcrumb a {
	color: var(--color-text);
	text-decoration: none;
}

.single-product .woocommerce-breadcrumb a:hover {
	color: var(--color-button);
}

/* Focus needs a visible indicator of its own now that the hover underline is
   gone -- otherwise keyboard users get no cue at all. */
.single-product .woocommerce-breadcrumb a:focus-visible {
	color: var(--color-button);
	outline: 2px solid var(--color-button);
	outline-offset: 2px;
	border-radius: 3px;
}

/* --------------------------------------------------------------- gallery --- */

.single-product .product-single__gallery,
.single-product .woocommerce-product-gallery {
	position: relative;
	margin: 0;
	/* Keeps the image beside the summary while the buy panel is read. */
	position: sticky;
	top: 1.5rem;
}

.single-product .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.single-product .woocommerce-product-gallery__image {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(4, 45, 71, .04);
}

.single-product .woocommerce-product-gallery__image a {
	display: block;
}

.single-product .woocommerce-product-gallery img:not(.zoomImg) {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 1.5rem;
	/* Matches the loop cards: flattens white product cut-outs onto the tint. */
	mix-blend-mode: multiply;
}

/*
 * Dormant guard. Hover zoom is currently switched off in functions.php, so no
 * .zoomImg is ever injected. Kept because if wc-product-gallery-zoom is ever
 * re-enabled, jQuery.zoom injects an absolutely-positioned .zoomImg into the
 * gallery and the presentation rules above would silently wreck it -- padding
 * offsets it, the square aspect-ratio letterboxes it, and multiply blending
 * washes it out over the tinted panel.
 */
.single-product .woocommerce-product-gallery .zoomImg {
	max-width: none;
	padding: 0;
	aspect-ratio: auto;
	object-fit: fill;
	mix-blend-mode: normal;
	background: var(--color-bg);
}

/* Zoom affordance — photoswipe ships only its lightbox CSS. */
.single-product .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--color-heading);
	font-size: 1.05rem;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(4, 45, 71, .12);
	transition: transform .15s ease, box-shadow .15s ease;
}

.single-product .woocommerce-product-gallery__trigger:hover,
.single-product .woocommerce-product-gallery__trigger:focus-visible {
	transform: scale(1.06);
	box-shadow: 0 4px 14px rgba(4, 45, 71, .18);
}

/* Thumbnail strip for multi-image products. */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .75rem;
	margin: .75rem 0 0;
	padding: 0;
	list-style: none;
}

.single-product .flex-control-thumbs li {
	list-style: none;
	margin: 0;
}

.single-product .flex-control-thumbs img {
	border: 1px solid var(--color-border);
	border-radius: 10px;
	background: var(--color-bg-alt);
	cursor: pointer;
	opacity: .6;
	transition: opacity .15s ease, border-color .15s ease;
}

.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover {
	opacity: 1;
	border-color: var(--color-button);
}

/* --------------------------------------------------------------- summary --- */

.single-product .summary.entry-summary {
	margin: 0;
}

.single-product .product_title {
	margin: 0 0 .85rem;
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem);
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--color-heading);
}

.single-product .summary > .price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1.25rem;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--color-heading);
}

.single-product .summary > .price del {
	font-size: .55em;
	font-weight: 500;
	color: var(--color-text);
	opacity: .65;
}

.single-product .summary > .price ins {
	text-decoration: none;
	color: var(--color-red);
}

.single-product .woocommerce-product-details__short-description {
	margin: 0 0 1.5rem;
	color: var(--color-text);
	font-size: 1rem;
	line-height: 1.7;
}

.single-product .woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

/* Stock state, styled to echo the loop's card badges. */
.single-product .summary .stock {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin: 0 0 1.25rem;
	font-size: .9rem;
	font-weight: 700;
}

.single-product .summary .stock::before {
	content: "";
	width: .5rem;
	height: .5rem;
	border-radius: 999px;
	background: currentColor;
}

.single-product .summary .stock.in-stock {
	color: #1a8754;
}

.single-product .summary .stock.out-of-stock {
	color: var(--color-red);
}

/* ------------------------------------------------------------- buy panel --- */

/*
 * form.cart is styled as a panel so price, quantity and the CTA read as one
 * block. Works for simple and variable products alike -- the variations table
 * is inside the same form.
 */
.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: .75rem;
	margin: 0 0 1.5rem;
	padding: 1.25rem;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: 14px;
}

.single-product form.cart .quantity {
	display: flex;
}

.single-product form.cart .qty {
	width: 5rem;
	padding: .7rem .5rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fff;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-heading);
	text-align: center;
	-moz-appearance: textfield;
}

.single-product form.cart .qty::-webkit-outer-spin-button,
.single-product form.cart .qty::-webkit-inner-spin-button {
	opacity: 1;
	height: 2rem;
}

.single-product form.cart .qty:focus-visible {
	outline: 2px solid var(--color-button);
	outline-offset: 1px;
	border-color: var(--color-button);
}

.single-product form.cart .single_add_to_cart_button {
	flex: 1 1 12rem;
	padding: .8rem 1.75rem;
	border-radius: 8px;
	font-size: 1.05rem;
	letter-spacing: .01em;
	box-shadow: 0 2px 8px rgba(0, 178, 178, .25);
}

.single-product form.cart .single_add_to_cart_button:hover {
	box-shadow: 0 4px 14px rgba(0, 178, 178, .32);
}

.single-product form.cart .single_add_to_cart_button:focus-visible {
	outline: 2px solid var(--color-heading);
	outline-offset: 2px;
}

.single-product form.cart .single_add_to_cart_button.disabled {
	opacity: .5;
	cursor: not-allowed;
	box-shadow: none;
}

/* Variable products: the attribute rows sit above the qty/CTA row. */
.single-product form.cart .variations {
	flex: 1 1 100%;
	margin: 0;
	border-collapse: collapse;
}

.single-product form.cart .variations th,
.single-product form.cart .variations td {
	padding: .3rem 0;
	text-align: left;
	vertical-align: middle;
	border: 0;
}

.single-product form.cart .variations label {
	font-size: .9rem;
	font-weight: 600;
	color: var(--color-heading);
}

.single-product form.cart .variations select {
	width: 100%;
	padding: .6rem .9rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fff;
	font-family: var(--font-body);
	font-size: .95rem;
	color: var(--color-heading);
	cursor: pointer;
}

.single-product form.cart .reset_variations {
	display: inline-block;
	margin-top: .35rem;
	font-size: .85rem;
	color: var(--color-button);
}

.single-product .woocommerce-variation-price {
	flex: 1 1 100%;
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--color-heading);
}

/* Grouped/out-of-stock forms have no qty; keep the CTA from stretching oddly. */
.single-product form.cart.variations_form .single_add_to_cart_button {
	flex: 1 1 100%;
}

/* ------------------------------------------------------------------ meta --- */

.single-product .product_meta {
	padding-top: 1.25rem;
	border-top: 1px solid var(--color-border);
	font-size: .9rem;
	line-height: 1.7;
	color: var(--color-text);
}

.single-product .product_meta > span {
	display: block;
}

.single-product .product_meta a {
	color: var(--color-button);
	text-decoration: none;
}

.single-product .product_meta a:hover {
	color: var(--color-button-hover);
}

.single-product .product_meta a:focus-visible {
	outline: 2px solid var(--color-button);
	outline-offset: 2px;
	border-radius: 3px;
}

/* ------------------------------------------------------------------ tabs --- */

.single-product .woocommerce-tabs {
	margin: 0 0 3.5rem;
}

.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--color-border);
}

.single-product .woocommerce-tabs ul.tabs li {
	list-style: none;
	margin: 0;
}

.single-product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: .9rem 1.5rem;
	border-bottom: 2px solid transparent;
	border-radius: 8px 8px 0 0;
	font-size: .95rem;
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
	background: var(--color-bg-alt);
	color: var(--color-heading);
}

.single-product .woocommerce-tabs ul.tabs li a:focus-visible {
	outline: 2px solid var(--color-button);
	outline-offset: -2px;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
	color: var(--color-heading);
	border-bottom-color: var(--color-button);
}

.single-product .woocommerce-tabs .panel {
	max-width: 80ch;
	padding-top: 2rem;
	font-size: 1rem;
	line-height: 1.75;
}

.single-product .woocommerce-tabs .panel > :first-child {
	margin-top: 0;
}

.single-product .woocommerce-tabs .panel > :last-child {
	margin-bottom: 0;
}

.single-product .woocommerce-tabs .panel h2 {
	margin: 0 0 1.1rem;
	font-size: 1.5rem;
	line-height: 1.25;
	color: var(--color-heading);
}

.single-product .woocommerce-tabs .panel h3 {
	margin: 2rem 0 .6rem;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--color-heading);
}

.single-product .woocommerce-tabs .panel p {
	margin: 0 0 1.1rem;
}

.single-product .woocommerce-tabs .panel a {
	color: var(--color-button);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-product .woocommerce-tabs .panel a:hover,
.single-product .woocommerce-tabs .panel a:focus-visible {
	color: var(--color-button-hover);
}

.single-product .woocommerce-tabs .panel img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.single-product .woocommerce-tabs .panel ul,
.single-product .woocommerce-tabs .panel ol {
	margin: 0 0 1.1rem;
	padding-left: 1.25rem;
}

.single-product .woocommerce-tabs .panel li {
	margin-bottom: .35rem;
}

/* --------------------------------------------------------------- reviews --- */

.single-product .woocommerce-Reviews-title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	color: var(--color-heading);
}

.single-product .woocommerce-noreviews {
	padding: 1rem 1.25rem;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: 10px;
	margin: 0 0 1.75rem;
}

.single-product .commentlist {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.single-product .commentlist li {
	list-style: none;
	margin: 0 0 1rem;
}

.single-product .commentlist .comment_container {
	display: flex;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: 12px;
}

.single-product .commentlist .avatar {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 999px;
}

.single-product .commentlist .comment-text {
	flex: 1 1 auto;
	min-width: 0;
}

.single-product .commentlist .woocommerce-review__author {
	font-weight: 700;
	color: var(--color-heading);
}

.single-product .commentlist .woocommerce-review__published-date {
	font-size: .85rem;
	color: var(--color-text);
	opacity: .7;
}

/*
 * Star ratings.
 *
 * WooCommerce draws stars with an icon font declared in woocommerce-general,
 * which this theme dequeues -- so the widget degrades to its raw text labels
 * ("1 van de 5 sterren 2 van de 5 sterren ..."). Rebuilt here with a plain
 * character so no font file is needed.
 *
 * The fill logic mirrors WooCommerce's own: colour every star, then un-colour
 * the ones *after* the hovered/selected one via the sibling combinator.
 */

/* --- read-only display (review list, average rating) --- */
.single-product .star-rating {
	position: relative;
	display: inline-block;
	overflow: hidden;
	font-size: .95rem;
	line-height: 1.2;
	/* No letter-spacing: the five glyphs must tile at equal width, otherwise the
	   inline width % below cannot land on a star boundary. */
	letter-spacing: 0;
	font-family: var(--font-body);
}

/* Left in flow deliberately: it sizes .star-rating to exactly five glyphs, so
   the span's inline width % clips on a whole star. */
.single-product .star-rating::before {
	content: "\2605\2605\2605\2605\2605";
	display: block;
	color: #c9ced6;
}

/* Woo sets an inline width % on this span; padding-top parks the literal
   "Beoordeeld 5 uit 5" text outside the clipped box. */
.single-product .star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	padding-top: 1.5em;
}

.single-product .star-rating span::before {
	content: "\2605\2605\2605\2605\2605";
	position: absolute;
	top: 0;
	left: 0;
	color: #f5a623;
}

/* --- interactive picker in the review form --- */
.single-product .comment-form-rating .stars {
	display: inline-block;
	margin: 0 0 .5rem;
	line-height: 1;
}

.single-product .comment-form-rating .stars span {
	display: inline-flex;
	gap: .1rem;
}

.single-product .comment-form-rating .stars a {
	position: relative;
	display: inline-block;
	width: 1.6rem;
	height: 1.6rem;
	/* Hides the text label without hiding it from assistive tech. */
	font-size: 0;
	text-decoration: none;
	color: #c9ced6;
}

.single-product .comment-form-rating .stars a::before {
	content: "\2605";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	font-size: 1.5rem;
	line-height: 1;
	text-align: center;
	color: inherit;
	transition: color .12s ease;
}

.single-product .comment-form-rating .stars a:focus-visible {
	outline: 2px solid var(--color-button);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Chosen rating (WooCommerce adds .selected / .active). :not(:hover) so that
   hovering always previews cleanly over an existing choice. */
.single-product .comment-form-rating .stars.selected:not(:hover) a {
	color: #f5a623;
}

.single-product .comment-form-rating .stars.selected:not(:hover) a.active ~ a {
	color: #c9ced6;
}

/* Hover preview. */
.single-product .comment-form-rating .stars:hover a {
	color: #f5a623;
}

.single-product .comment-form-rating .stars a:hover ~ a {
	color: #c9ced6;
}

@media (prefers-reduced-motion: reduce) {
	.single-product .comment-form-rating .stars a::before {
		transition: none;
	}
}

.single-product .comment-respond {
	max-width: 42rem;
	padding: 1.5rem;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: 14px;
}

.single-product .comment-respond .comment-reply-title {
	display: block;
	margin: 0 0 .5rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-heading);
}

.single-product .comment-notes {
	margin: 0 0 1.25rem;
	font-size: .9rem;
	color: var(--color-text);
}

.single-product .comment-form p {
	margin: 0 0 1.1rem;
}

.single-product .comment-form label {
	display: block;
	margin-bottom: .4rem;
	font-size: .9rem;
	font-weight: 600;
	color: var(--color-heading);
}

.single-product .comment-form input[type="text"],
.single-product .comment-form input[type="email"],
.single-product .comment-form textarea {
	width: 100%;
	padding: .7rem .9rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fff;
	font-family: var(--font-body);
	font-size: .95rem;
	color: var(--color-text);
}

.single-product .comment-form input[type="text"]:focus-visible,
.single-product .comment-form input[type="email"]:focus-visible,
.single-product .comment-form textarea:focus-visible,
.single-product .comment-form select:focus-visible {
	outline: 2px solid var(--color-button);
	outline-offset: 1px;
	border-color: var(--color-button);
}

.single-product .comment-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.single-product .comment-form .required {
	color: var(--color-red);
}

.single-product .comment-form-rating select {
	padding: .6rem .9rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fff;
	font-family: var(--font-body);
	font-size: .95rem;
	color: var(--color-heading);
	cursor: pointer;
}

.single-product .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
}

.single-product .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
	font-size: .9rem;
}

.single-product .comment-form .form-submit {
	margin-bottom: 0;
}

/* ------------------------------------------------------- related products --- */

/* The grid itself comes from ul.products in the main bundle. */
.single-product .related.products,
.single-product .upsells.products {
	clear: both;
	/* No border-top: the heading now carries its own rule, and a full-width
	   line 40px above a text-width one reads as two competing dividers. */
	padding-top: 2.5rem;
}

/* --------------------------------------------------------------- notices --- */

.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 1.5rem 0 0;
	padding: 1rem 1.25rem;
	border-radius: 10px;
	border: 1px solid var(--color-border);
	background: var(--color-bg-alt);
	font-size: .95rem;
	list-style: none;
}

.single-product .woocommerce-message {
	border-left: 4px solid #1a8754;
}

.single-product .woocommerce-error {
	border-left: 4px solid var(--color-red);
}

.single-product .woocommerce-message .button,
.single-product .woocommerce-info .button {
	margin-left: auto;
}

/* -------------------------------------------------- summary components --- */

/* Always-visible stock badge (ph_single_stock_status). */
.single-product .product-single__stock {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin: 0 0 1rem;
	padding: .3rem .75rem .3rem .6rem;
	border-radius: 999px;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.4;
}

.single-product .product-single__stock::before {
	content: "";
	width: .5rem;
	height: .5rem;
	border-radius: 999px;
	background: currentColor;
}

.single-product .product-single__stock.in-stock {
	color: #1a8754;
}

.single-product .product-single__stock.out-of-stock {
	color: var(--color-red);
}

/* "Prijs:" lead-in on the single-product price. */
.single-product .summary > .price .price-label {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--color-heading);
}

/* Unit suffix on the price, e.g. "per strip". Sized down so it reads as a
   qualifier rather than part of the amount. */
.single-product .summary > .price .price-unit {
	font-size: .9rem;
	font-weight: 500;
	color: var(--color-text);
	opacity: .8;
}

/* Meta as aligned label/value rows (ph_single_product_meta). */
.single-product .product-single__meta {
	display: grid;
	gap: .5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--color-border);
	font-size: .9rem;
	line-height: 1.6;
	color: var(--color-text);
}

.single-product .product-single__meta-row {
	display: grid;
	grid-template-columns: minmax(6.5rem, auto) 1fr;
	gap: .25rem .75rem;
	align-items: baseline;
}

.single-product .product-single__meta-label {
	font-weight: 600;
	color: var(--color-heading);
}

.single-product .product-single__meta-values a {
	color: var(--color-button);
	text-decoration: none;
}

.single-product .product-single__meta-values a:hover {
	color: var(--color-button-hover);
}

.single-product .product-single__meta-values a:focus-visible {
	outline: 2px solid var(--color-button);
	outline-offset: 2px;
	border-radius: 3px;
}

/* ------------------------------------------------------ section headings --- */

/*
 * Divider treatment, identical to .home-section-title on the homepage: a
 * hairline bounded by the heading text, with a short accent bar at the left.
 *
 * All four headings share one rule set so the product page and homepage cannot
 * drift apart. width:fit-content shrink-wraps each block element so both rules
 * stop at the words rather than spanning the container.
 *
 * The tabs selector is deliberately `> h2:first-child` -- that is WooCommerce's
 * own "Beschrijving" heading. Editorial h2s inside the product description must
 * not pick up the divider.
 */
.single-product .woocommerce-tabs .panel > h2:first-child,
.single-product .woocommerce-Reviews-title,
.single-product .related.products > h2,
.single-product .upsells.products > h2 {
	position: relative;
	width: fit-content;
	max-width: 100%;
	padding-bottom: .85rem;
	margin: 0 0 1.75rem;
	font-size: 1.6rem;
	line-height: 1.25;
	color: var(--color-heading);
}

.single-product .woocommerce-tabs .panel > h2:first-child::before,
.single-product .woocommerce-Reviews-title::before,
.single-product .related.products > h2::before,
.single-product .upsells.products > h2::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--color-border);
}

.single-product .woocommerce-tabs .panel > h2:first-child::after,
.single-product .woocommerce-Reviews-title::after,
.single-product .related.products > h2::after,
.single-product .upsells.products > h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 3px;
	border-radius: 999px;
	background: var(--color-button);
}

/* ------------------------------------------------------------- responsive --- */

@media (max-width: 900px) {
	.product-single__layout,
	.single-product div.product {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
		margin-bottom: 3rem;
	}

	.single-product .product-single__gallery,
	.single-product .woocommerce-product-gallery {
		position: static;
		max-width: 26rem;
	}

	.single-product .woocommerce-tabs .panel {
		padding-top: 1.5rem;
	}
}

@media (max-width: 600px) {
	.single-product .product-single__meta-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.single-product .product_title {
		font-size: 1.6rem;
	}

	.single-product .summary > .price {
		font-size: 1.6rem;
		margin-bottom: 1rem;
	}

	.single-product form.cart {
		padding: 1rem;
		gap: .6rem;
	}

	.single-product form.cart .qty {
		width: 4rem;
	}

	.single-product form.cart .single_add_to_cart_button {
		flex: 1 1 8rem;
		padding: .8rem 1rem;
		font-size: 1rem;
	}

	.single-product .woocommerce-tabs ul.tabs {
		gap: 0;
	}

	.single-product .woocommerce-tabs ul.tabs li a {
		padding: .75rem 1rem;
		font-size: .9rem;
	}

	.single-product .comment-respond {
		padding: 1.15rem;
	}

	.single-product .woocommerce-tabs .panel > h2:first-child,
	.single-product .woocommerce-Reviews-title,
	.single-product .related.products > h2,
	.single-product .upsells.products > h2 {
		font-size: 1.35rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-product .woocommerce-product-gallery__trigger,
	.single-product .woocommerce-tabs ul.tabs li a,
	.single-product .flex-control-thumbs img,
	.single-product form.cart .single_add_to_cart_button {
		transition: none;
	}

	.single-product .woocommerce-product-gallery__trigger:hover,
	.single-product .woocommerce-product-gallery__trigger:focus-visible {
		transform: none;
	}
}

/* ------------------------------------------------- bulk discount tiers --- */

/*
 * Rendered by advanced_woo_discount_rules/discount_table.php, which
 * woo-discount-rules drops in at woocommerce_before_add_to_cart_form -- i.e.
 * directly above the buy panel. Styled as its own card so the two read as a
 * pair without depending on each other: most products have no tiers at all and
 * the buy panel has to stand alone.
 */
.single-product .discount-tiers {
	margin: 0 0 .75rem;
}

.single-product .discount-tiers__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.single-product .discount-tiers__legend {
	padding: 0;
	margin: 0 0 .6rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--color-heading);
}

.single-product .discount-tiers__list {
	display: grid;
	gap: .5rem;
}

.single-product .discount-tier {
	position: relative;
	display: block;
	cursor: pointer;
}

/* The input stays focusable -- hiding it with display:none would take the
   whole list off the keyboard and out of the accessibility tree. */
.single-product .discount-tier input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.single-product .discount-tier__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .75rem;
	padding: .7rem .9rem .7rem 2.6rem;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Radio dial, drawn on the row so the whole row is the hit area. */
.single-product .discount-tier__body::before {
	content: "";
	position: absolute;
	top: 50%;
	left: .95rem;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background: #fff;
	border: 2px solid #c9ced6;
	border-radius: 50%;
	transition: border-color .15s ease;
}

.single-product .discount-tier__body::after {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(.95rem + 5px);
	width: 8px;
	height: 8px;
	margin-top: -4px;
	background: var(--color-button);
	border-radius: 50%;
	opacity: 0;
	transform: scale(.4);
	transition: opacity .15s ease, transform .15s ease;
}

.single-product .discount-tier:hover .discount-tier__body {
	border-color: #c9ced6;
}

.single-product .discount-tier input:checked + .discount-tier__body {
	background: var(--color-bg-alt);
	border-color: var(--color-button);
	box-shadow: inset 0 0 0 1px var(--color-button);
}

.single-product .discount-tier input:checked + .discount-tier__body::before {
	border-color: var(--color-button);
}

.single-product .discount-tier input:checked + .discount-tier__body::after {
	opacity: 1;
	transform: scale(1);
}

.single-product .discount-tier input:focus-visible + .discount-tier__body {
	outline: 2px solid var(--color-button);
	outline-offset: 2px;
}

.single-product .discount-tier__range {
	font-size: .95rem;
	font-weight: 600;
	color: var(--color-heading);
}

.single-product .discount-tier__save {
	padding: .15rem .5rem;
	background: rgba(0, 178, 178, .12);
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	color: #00807f;
}

.single-product .discount-tier__prices {
	display: flex;
	align-items: baseline;
	gap: .45rem;
	margin-left: auto;
	white-space: nowrap;
}

.single-product .discount-tier__was {
	font-size: .82rem;
	font-weight: 500;
	color: var(--color-text);
	opacity: .6;
	text-decoration: line-through;
}

.single-product .discount-tier__now {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-heading);
	background: none;
	text-decoration: none;
}

@media (max-width: 600px) {
	.single-product .discount-tier__body {
		padding-left: 2.4rem;
	}

	.single-product .discount-tier__range {
		font-size: .9rem;
	}

	.single-product .discount-tier__now {
		font-size: .95rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-product .discount-tier__body,
	.single-product .discount-tier__body::before,
	.single-product .discount-tier__body::after {
		transition: none;
	}
}
