.woocommerce-breadcrumb {
	margin-block-end: var(--hx-sp-6);
	font-size: var(--hx-fs-sm);
	color: var(--hx-ink-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.woocommerce-breadcrumb a {
	color: var(--hx-ink-muted);
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	color: var(--hx-brand-text);
}

.hx-product-page {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--hx-sp-4);
	padding-block: var(--hx-sp-6) var(--hx-sp-12);
}

@media (min-width: 640px) {
	.hx-product-page { padding-inline: var(--hx-sp-6); }
}

@media (min-width: 1024px) {
	.hx-product-page { padding-inline: var(--hx-sp-8); }
}

.hx-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(2rem, 4vw, 5rem);
}

.hx-product-gallery {
	position: sticky;
	top: calc(6rem + var(--wp-admin--admin-bar--height, 0px));
	min-width: 0;
	align-self: start;
	background: transparent;
}

/* Below 992px two columns are too narrow for the summary: stack them. */
@media (max-width: 991px) {
	.hx-product-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--hx-sp-6);
	}
	.hx-product-gallery {
		position: static;
	}
}

.hx-product-gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	position: relative;
}

.hx-product-gallery .flex-viewport {
	margin-inline: -8px !important;
}

.hx-product-gallery .flex-viewport .slides > li {
	padding: 0 8px !important;
	box-sizing: border-box !important;
	background-color: var(--hx-bg, #ffffff) !important;
}

.hx-product-gallery img {
	border-radius: var(--hx-radius-lg);
	width: 100%;
}

.hx-product-gallery .flex-control-thumbs {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: var(--hx-sp-2);
	margin: var(--hx-sp-3) 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: transparent;
}

.hx-product-gallery .flex-control-thumbs li {
	flex: 0 0 80px !important;
	max-width: 100px;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
	cursor: pointer;
}

.hx-product-gallery .flex-control-thumbs img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--hx-radius-sm) !important;
	border: 2px solid transparent;
	opacity: 0.6;
	transition: opacity var(--hx-dur) var(--hx-ease), border-color var(--hx-dur) var(--hx-ease);
	display: block;
	margin: 0 !important;
}

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

.hx-product-gallery span.onsale {
	position: absolute !important;
	top: var(--hx-sp-4) !important;
	inset-inline-start: var(--hx-sp-4) !important;
	inset-inline-end: auto !important;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 6px 14px !important;
	background-color: var(--hx-badge) !important;
	color: #fff !important;
	font-size: var(--hx-fs-xs) !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	border-radius: var(--hx-radius-full) !important;
	box-shadow: var(--hx-shadow-md) !important;
	z-index: 5 !important;
	display: inline-block !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	margin: 0 !important;
}

.hx-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: var(--hx-sp-4);
	inset-inline-end: var(--hx-sp-4);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.95);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 20px 20px;
	box-shadow: var(--hx-shadow);
	z-index: 6;
	transition: transform var(--hx-dur) var(--hx-ease), background-color var(--hx-dur) var(--hx-ease);
	overflow: hidden;
	text-indent: 100%;
	white-space: nowrap;
	font-size: 0;
	color: transparent;
	border: 0;
	cursor: pointer;
}

.hx-product-gallery .woocommerce-product-gallery__trigger:hover {
	background-color: #fff;
	transform: scale(1.05);
}

.hx-product-gallery .woocommerce-product-gallery__trigger::before,
.hx-product-gallery .woocommerce-product-gallery__trigger::after {
	display: none;
}

.hx-product-content { min-width: 0; }
.hx-product-purchase > :first-child { margin-top: 0; }

.hx-product-purchase .product_title {
	margin-top: 0;
	font-size: clamp(1.8rem, 3vw, 3rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--hx-ink);
	font-weight: 800;
}

.hx-product-purchase .price {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--hx-price);
	margin-block: var(--hx-sp-4);
}

.hx-product-purchase .price del {
	color: var(--hx-ink-light);
	font-weight: 500;
	font-size: 0.75em;
	margin-inline-end: var(--hx-sp-2);
}

.hx-product-purchase .price ins {
	text-decoration: none;
}

/* Summary rating row: keep stars and the review link on the start edge in RTL. */
.hx-product-purchase .woocommerce-product-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hx-sp-2);
	margin-block: var(--hx-sp-2) 0;
	font-size: var(--hx-fs-sm);
	line-height: 1.4;
}

.hx-product-purchase .woocommerce-product-rating .star-rating {
	float: none;
	margin: 0;
	font-size: 1em;
	color: var(--hx-accent);
}

.hx-product-purchase .woocommerce-review-link {
	color: var(--hx-ink-muted);
	text-decoration: none;
	transition: color var(--hx-dur) var(--hx-ease);
}

.hx-product-purchase .woocommerce-review-link:hover {
	color: var(--hx-brand-text);
}

/* Stars follow the colour presets (WooCommerce hardcodes gray/gold otherwise). */
.hx-product-page .star-rating::before,
.hx-product-reviews .star-rating::before {
	color: var(--hx-line);
}

.hx-product-page .star-rating span::before,
.hx-product-reviews .star-rating span::before {
	color: var(--hx-accent);
}

.hx-product-purchase .woocommerce-product-details__short-description {
	color: var(--hx-ink-muted);
	font-size: var(--hx-fs-base);
	line-height: 1.7;
	margin-block: var(--hx-sp-4);
}

.hx-product-purchase form.cart:not(.grouped_form):not(.variations_form),
.hx-product-purchase .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hx-sp-3);
	align-items: stretch;
	margin-block: var(--hx-sp-6);
}

.hx-product-purchase form.cart .hx-bundles {
	flex: 1 1 100%;
	width: 100%;
}

.hx-product-purchase form.cart:not(.grouped_form):not(.variations_form) .quantity,
.hx-product-purchase .woocommerce-variation-add-to-cart .quantity {
	display: flex;
	margin: 0;
}

.hx-product-purchase .quantity input {
	padding: var(--hx-sp-3);
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius);
	width: 80px;
	text-align: center;
	font-weight: 700;
	height: 100%;
	box-sizing: border-box;
	background: #fff;
}

.hx-product-purchase .single_add_to_cart_button {
	min-height: 3.25rem;
	height: auto;
	padding: var(--hx-sp-3) var(--hx-sp-8);
	font-size: var(--hx-fs-base);
	font-weight: 800;
	background-color: var(--hx-primary) !important;
	color: #fff !important;
	border: 0;
	border-radius: var(--hx-radius);
	transition: all var(--hx-dur) var(--hx-ease);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hx-product-purchase .single_add_to_cart_button:hover {
	background-color: var(--hx-primary-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(15,23,42,0.3);
	color: #fff !important;
}

.hx-product-purchase .single_add_to_cart_button.disabled,
.hx-product-purchase .single_add_to_cart_button.wc-variation-selection-needed,
.hx-product-purchase .single_add_to_cart_button:disabled {
	background-color: var(--hx-line) !important;
	color: var(--hx-ink-muted) !important;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.hx-product-purchase form.cart:not(.grouped_form):not(.variations_form) .single_add_to_cart_button,
.hx-product-purchase .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 150px;
}

.hx-product-purchase .variations {
	width: 100%;
	margin-block: var(--hx-sp-4);
}

.hx-product-purchase .variations th,
.hx-product-purchase .variations td {
	padding: var(--hx-sp-2) 0;
	text-align: start;
	vertical-align: middle;
}

.hx-product-purchase .variations select {
	padding: var(--hx-sp-2) var(--hx-sp-3);
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius-sm);
	min-width: 200px;
	background: #fff;
}

.hx-product-purchase .reset_variations {
	display: none !important;
}

table.woocommerce-grouped-product-list {
	width: 100%;
	border-collapse: collapse;
	margin-block: var(--hx-sp-4) var(--hx-sp-6);
	border-block: 1px solid var(--hx-line);
}

table.woocommerce-grouped-product-list th,
table.woocommerce-grouped-product-list td {
	padding: var(--hx-sp-3) 0;
	border-block-end: 1px solid var(--hx-line);
	vertical-align: middle !important;
	text-align: start;
}

table.woocommerce-grouped-product-list tr:last-child td {
	border-block-end: 0;
}

table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__quantity {
	width: 100px;
	padding-inline-end: var(--hx-sp-3);
}

table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__quantity .quantity {
	display: inline-flex;
	margin: 0;
}

table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__quantity input.qty {
	width: 70px;
	height: 2.6rem;
	padding: var(--hx-sp-1);
	text-align: center;
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius-sm);
	font-weight: 700;
	font-size: var(--hx-fs-base);
	background: #fff;
}

table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__label {
	font-weight: 600;
	color: var(--hx-ink);
	line-height: 1.4;
	padding-inline-end: var(--hx-sp-4);
}

table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__label a {
	color: inherit;
}

table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__label a:hover {
	color: var(--hx-brand-text);
}

table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__price {
	width: 110px;
	text-align: end;
	font-weight: 800;
	color: var(--hx-price);
	white-space: nowrap;
}

table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__price .woocommerce-Price-amount {
	font-size: var(--hx-fs-base);
}

.hx-product-purchase form.grouped_form .single_add_to_cart_button {
	margin-top: var(--hx-sp-4);
	width: 100%;
	display: inline-flex;
	justify-content: center;
}

.hx-product-story {
	margin-top: clamp(2rem, 4vw, 4rem);
}

.hx-product-story > section {
	padding-block: var(--hx-sp-6);
	border-top: 1px solid var(--hx-line);
	scroll-margin-top: 6rem;
}

.hx-product-story h2 {
	margin-top: 0;
	font-size: var(--hx-fs-xl);
	margin-block-end: var(--hx-sp-4);
	font-weight: 800;
}

/* Section labels (Product details, Additional information, Specifications, FAQ).
   They are not headings: the page keeps a single H1 and a clean outline, while
   the labels still read as titles in the brand colour. */
.hx-product-section__title {
	margin: 0 0 var(--hx-sp-4);
	font-size: var(--hx-fs-xl);
	line-height: 1.3;
	font-weight: 800;
	color: var(--hx-brand-text);
}

.hx-product-description {
	color: var(--hx-ink);
	font-size: 1.125rem;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.hx-product-description > * + * {
	margin-block-start: var(--hx-sp-4);
}

.hx-product-description h3,
.hx-product-description h4 {
	margin-block-start: var(--hx-sp-6);
	line-height: 1.3;
	font-weight: 800;
}

.hx-product-description h3 { font-size: var(--hx-fs-lg); }
.hx-product-description h4 { font-size: var(--hx-fs-base); }

.hx-product-description ul,
.hx-product-description ol {
	padding-inline-start: 1.4rem;
}

.hx-product-description ul { list-style: disc; }
.hx-product-description ol { list-style: decimal; }
.hx-product-description li + li { margin-block-start: var(--hx-sp-1); }

.hx-product-description a {
	color: var(--hx-brand-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hx-product-description img,
.hx-product-description video {
	border-radius: var(--hx-radius);
}

.hx-product-description table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--hx-fs-sm);
}

.hx-product-description table th,
.hx-product-description table td {
	padding: var(--hx-sp-2) var(--hx-sp-3);
	border: 1px solid var(--hx-line);
	text-align: start;
}

.hx-product-description blockquote {
	padding-inline-start: var(--hx-sp-5);
	border-inline-start: 4px solid var(--hx-primary);
	color: var(--hx-ink-muted);
	font-style: italic;
}

.hx-product-specifications {
	font-size: var(--hx-fs-sm);
}

.hx-product-specifications table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius);
	overflow: hidden;
}

.hx-product-specifications th,
.hx-product-specifications td {
	padding: var(--hx-sp-3) var(--hx-sp-4);
	text-align: start;
	vertical-align: top;
	border-block-end: 1px solid var(--hx-line);
}

.hx-product-specifications tr:last-child th,
.hx-product-specifications tr:last-child td {
	border-block-end: 0;
}

.hx-product-specifications th {
	width: 35%;
	font-weight: 700;
	color: var(--hx-ink-muted);
	background: var(--hx-bg-alt);
}

.hx-product-specifications td {
	color: var(--hx-ink);
}

.hx-product-specifications dl {
	display: grid;
	grid-template-columns: minmax(120px, 35%) minmax(0, 1fr);
	margin: 0;
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius);
	overflow: hidden;
}

.hx-product-specifications dt,
.hx-product-specifications dd {
	margin: 0;
	padding: var(--hx-sp-3) var(--hx-sp-4);
	border-block-end: 1px solid var(--hx-line);
}

.hx-product-specifications dt {
	font-weight: 700;
	color: var(--hx-ink-muted);
	background: var(--hx-bg-alt);
}

.hx-product-specifications dt:last-of-type,
.hx-product-specifications dd:last-of-type {
	border-block-end: 0;
}

.hx-product-page .hx-product-info table.shop_attributes {
	width: 100%;
	display: table;
	border-collapse: collapse;
	border: none;
	background: transparent;
	box-shadow: none;
	margin-block-end: var(--hx-sp-8);
}

.hx-product-page .hx-product-info table.shop_attributes tbody {
	display: table-row-group;
}

.hx-product-page .hx-product-info table.shop_attributes tr {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: var(--hx-sp-2);
	text-align: center;
	padding-block: var(--hx-sp-4);
	border-block-end: 1px solid var(--hx-line);
	background: transparent;
}

.hx-product-page .hx-product-info table.shop_attributes tr:last-child {
	border-block-end: none;
}

.hx-product-page .hx-product-info table.shop_attributes tr:hover {
	background: transparent;
}

.hx-product-page .hx-product-info table.shop_attributes th {
	padding: 0;
	margin: 0;
	border: none;
	background: transparent !important;
	font-weight: 600;
	font-size: var(--hx-fs-sm);
	color: var(--hx-ink-muted);
	text-transform: capitalize;
	letter-spacing: normal;
	margin-inline-end: 0;
	text-align: center;
	width: 100%;
}

.hx-product-page .hx-product-info table.shop_attributes td {
	padding: 0;
	margin: 0;
	border: none;
	background: transparent !important;
	text-align: center;
	width: 100%;
	font-size: var(--hx-fs-sm);
	font-weight: 600;
	color: var(--hx-ink);
	font-style: normal !important;
}

.hx-product-page .hx-product-info table.shop_attributes td p {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--hx-sp-2);
}

/* Tag-style values: hide the ", " WooCommerce prints between the links. */
.hx-product-page .hx-product-info table.shop_attributes td p:has(a) {
	font-size: 0;
}

.hx-product-page .hx-product-info table.shop_attributes td a {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background: transparent;
	color: var(--hx-ink-muted);
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius-sm);
	text-decoration: none;
	font-size: var(--hx-fs-xs);
	font-weight: 600;
	transition: all var(--hx-dur) var(--hx-ease);
	box-sizing: border-box;
}

.hx-product-page .hx-product-info table.shop_attributes td a::before {
	content: "#";
	margin-inline-end: 4px;
	font-weight: 800;
	color: var(--hx-ink-light);
}

.hx-product-page .hx-product-info table.shop_attributes td a:hover {
	background: var(--hx-primary-soft);
	color: var(--hx-brand-text);
	border-color: var(--hx-primary-border);
}

.hx-product-page .hx-product-info table.shop_attributes td a:hover::before {
	color: var(--hx-brand-text);
}

.hx-stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: var(--hx-sp-3) 0 0;
	font-size: var(--hx-fs-sm);
	font-weight: 700;
	line-height: 1.4;
	color: #15803d;
}

.hx-stock__dot {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
}

.hx-stock--low,
.hx-stock--backorder { color: #b45309; }
.hx-stock--out { color: #b91c1c; }

.hx-product-purchase .quantity input.qty {
	height: 100%;
	padding-block: 0;
	box-sizing: border-box;
}

.hx-product-purchase .single_add_to_cart_button {
	min-height: 3.25rem;
	vertical-align: middle;
}

.hx-product-faq {
	font-size: var(--hx-fs-base);
}

.hx-faq {
	display: grid;
	gap: var(--hx-sp-3);
}

.hx-faq__item {
	background: #fff;
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius-md);
	overflow: hidden;
	transition: border-color var(--hx-dur) var(--hx-ease), box-shadow var(--hx-dur) var(--hx-ease);
}

.hx-faq__item:hover {
	border-color: var(--hx-primary-border);
}

.hx-faq__item[open] {
	border-color: var(--hx-primary-border);
	box-shadow: var(--hx-shadow-sm);
}

.hx-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hx-sp-4);
	padding: var(--hx-sp-4) var(--hx-sp-5);
	list-style: none;
	cursor: pointer;
	font-size: var(--hx-fs-base);
	font-weight: 700;
	line-height: 1.4;
	color: var(--hx-ink);
	transition: color var(--hx-dur) var(--hx-ease), background var(--hx-dur) var(--hx-ease);
}

.hx-faq__q::-webkit-details-marker { display: none; }

.hx-faq__q::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--hx-dur) var(--hx-ease);
}

.hx-faq__item[open] > .hx-faq__q {
	color: var(--hx-brand-text);
	background: var(--hx-primary-soft);
}

.hx-faq__item[open] > .hx-faq__q::after {
	transform: rotate(-135deg);
}

.hx-faq__q:hover {
	color: var(--hx-brand-text);
}

.hx-faq__q:focus-visible {
	outline: 2px solid var(--hx-primary);
	outline-offset: -2px;
	border-radius: var(--hx-radius-md);
}

.hx-faq__a {
	padding: var(--hx-sp-4) var(--hx-sp-5) var(--hx-sp-5);
	color: var(--hx-ink-muted);
	font-size: var(--hx-fs-base);
	line-height: 1.75;
}

.hx-faq__a > * + * {
	margin-block-start: var(--hx-sp-3);
}

.hx-faq__a a {
	color: var(--hx-brand-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hx-product-related {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--hx-sp-4);
	scroll-margin-top: 6rem;
}

@media (min-width: 640px) {
	.hx-product-related { padding-inline: var(--hx-sp-6); }
}

@media (min-width: 1024px) {
	.hx-product-related { padding-inline: var(--hx-sp-8); }
}

.hx-product-related:empty,
.hx-product-related:not(:has(*)) {
	display: none;
}

.hx-product-related .related > h2,
.hx-product-related .upsells > h2,
.hx-product-related .hx-product-section__title {
	margin-block: var(--hx-sp-8) var(--hx-sp-5);
	font-size: var(--hx-fs-2xl);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.hx-product-related ul.products li.product .button {
	background: var(--hx-primary-fill) !important;
	color: #fff !important;
	border: 1px solid var(--hx-primary) !important;
}

.hx-product-related ul.products li.product .button:hover {
	background: var(--hx-primary-dark) !important;
	border-color: var(--hx-primary-dark) !important;
}

.hx-product-page .woocommerce-tabs {
	margin-top: var(--hx-sp-8);
}

.hx-product-page .woocommerce-tabs ul.tabs {
	display: flex;
	gap: var(--hx-sp-1);
	padding: 0;
	margin-block-end: var(--hx-sp-4);
	border-block-end: 1px solid var(--hx-line);
	list-style: none;
}

.hx-product-page .woocommerce-tabs ul.tabs li {
	margin: 0;
}

.hx-product-page .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: var(--hx-sp-3) var(--hx-sp-5);
	font-weight: 600;
	color: var(--hx-ink-muted);
	border-radius: var(--hx-radius-sm) var(--hx-radius-sm) 0 0;
	transition: all var(--hx-dur) var(--hx-ease);
}

.hx-product-page .woocommerce-tabs ul.tabs li.active a {
	background: var(--hx-primary-soft);
	color: var(--hx-brand-text);
}

.hx-product-reviews {
	width: min(100% - 2rem, 1080px);
	margin: clamp(2rem, 4vw, 3rem) auto 0;
	padding-top: var(--hx-sp-6);
	border-top: 1px solid var(--hx-line);
	scroll-margin-top: 6rem;
}

/* WooCommerce anchors the review link to its own #reviews wrapper. */
.hx-product-reviews .woocommerce-Reviews,
.hx-product-reviews #reviews {
	scroll-margin-top: 6rem;
}

.hx-product-reviews__inner {
	width: 100%;
	max-width: 760px;
	margin-inline: auto;
}

.hx-product-reviews__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--hx-sp-3);
	margin-bottom: var(--hx-sp-5);
	padding-bottom: var(--hx-sp-3);
	border-bottom: 1px solid var(--hx-line);
}

.hx-product-reviews__title {
	margin: 0;
	font-size: var(--hx-fs-xl);
	line-height: 1.3;
	color: var(--hx-brand-text);
	font-weight: 800;
}

.hx-product-reviews__summary {
	margin-inline-start: auto;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hx-sp-2);
	color: var(--hx-ink-muted);
	font-size: var(--hx-fs-sm);
}

.hx-product-reviews__summary .star-rating {
	margin: 0;
	color: var(--hx-accent);
}

.hx-product-reviews__avg {
	color: var(--hx-ink);
	font-weight: 800;
}

.hx-product-reviews__count {
	white-space: nowrap;
}

.hx-product-reviews .woocommerce-Reviews-title {
	display: none;
}

.hx-product-reviews .woocommerce-Reviews,
.hx-product-reviews #comments,
.hx-product-reviews ol.commentlist {
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
	background: transparent !important;
}

.hx-product-reviews ol.commentlist {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hx-sp-3);
}

.hx-product-reviews ol.commentlist > li,
.hx-product-reviews ol.commentlist .review {
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
	background: transparent !important;
}

.hx-product-reviews .comment_container {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: start;
	gap: var(--hx-sp-3);
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 0 !important;
	padding: var(--hx-sp-4);
	background: #fff !important;
	border: 1px solid var(--hx-line) !important;
	border-radius: var(--hx-radius-md) !important;
}

.hx-product-reviews .comment_container > .comment-text {
	grid-column: 2;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.hx-product-reviews .comment_container img.avatar {
	display: block;
	position: static !important;
	float: none !important;
	width: 48px !important;
	height: 48px !important;
	max-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--hx-line) !important;
	border-radius: 50% !important;
	background: var(--hx-bg-alt);
	object-fit: cover;
	box-sizing: border-box !important;
	align-self: start;
}

.hx-product-reviews .comment-text,
.hx-product-reviews .comment_container .comment-text,
.hx-product-reviews ol.commentlist li .comment-text,
.hx-product-reviews #reviews #comments ol.commentlist li .comment-text {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

.hx-product-reviews .comment-text .meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hx-sp-2);
	margin: 0 0 var(--hx-sp-2) !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--hx-ink-muted) !important;
	font-size: var(--hx-fs-sm) !important;
	line-height: 1.5 !important;
}

.hx-product-reviews .comment-text .meta strong,
.hx-product-reviews .comment-text .meta .woocommerce-review__author,
.hx-product-reviews .comment-text .meta a,
.hx-product-reviews .comment-text .meta a:visited {
	color: var(--hx-ink) !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	font-size: var(--hx-fs-sm) !important;
	overflow-wrap: anywhere;
}

.hx-product-reviews .comment-text .meta time,
.hx-product-reviews .comment-text .meta .woocommerce-review__published-date {
	color: var(--hx-ink-light) !important;
	font-size: var(--hx-fs-xs) !important;
	white-space: normal;
}

.hx-product-reviews .woocommerce-review__dash {
	display: none !important;
}

.hx-product-reviews .comment-text .star-rating,
.hx-product-reviews .star-rating {
	float: none !important;
	margin: 0 0 var(--hx-sp-2) !important;
	color: var(--hx-accent) !important;
	font-size: 0.95em;
}

.hx-product-reviews .comment-text .description {
	margin-top: var(--hx-sp-1) !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	min-width: 0;
}

.hx-product-reviews .comment-text .description p {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--hx-ink) !important;
	font-size: var(--hx-fs-sm) !important;
	line-height: 1.6 !important;
	overflow-wrap: anywhere;
}

.hx-product-reviews #comments .woocommerce-noreviews {
	margin: 0;
	padding: var(--hx-sp-4);
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius-md);
	color: var(--hx-ink-muted);
}

.hx-product-reviews #review_form_wrapper {
	margin-top: var(--hx-sp-6);
	padding: var(--hx-sp-4);
	background: var(--hx-bg-alt) !important;
	border: 1px solid var(--hx-line) !important;
	border-radius: var(--hx-radius-md) !important;
}

.hx-product-reviews #review_form .comment-reply-title {
	display: block;
	margin: 0 0 var(--hx-sp-4);
	color: var(--hx-ink);
	font-size: var(--hx-fs-lg);
	font-weight: 700;
	line-height: 1.3;
}

.hx-product-reviews #review_form .comment-notes,
.hx-product-reviews #review_form .required {
	color: var(--hx-ink-muted);
	font-size: var(--hx-fs-sm);
}

.hx-product-reviews #review_form .comment-form {
	display: flex;
	flex-direction: column;
	gap: var(--hx-sp-3);
}

.hx-product-reviews #review_form .comment-form-rating {
	margin: 0 0 var(--hx-sp-3);
}

.hx-product-reviews #review_form .comment-form-rating label,
.hx-product-reviews #review_form .comment-form-comment label,
.hx-product-reviews #review_form .comment-form-author label,
.hx-product-reviews #review_form .comment-form-email label,
.hx-product-reviews #review_form .comment-form-cookies-consent label {
	display: block;
	margin: 0 0 var(--hx-sp-1);
	color: var(--hx-ink);
	font-size: var(--hx-fs-sm);
	font-weight: 600;
}

.hx-product-reviews #review_form .comment-form-rating p.stars {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1;
}

.hx-product-reviews #review_form .comment-form-rating p.stars a {
	color: var(--hx-accent);
}

.hx-product-reviews #review_form .comment-form-comment,
.hx-product-reviews #review_form .comment-form-author,
.hx-product-reviews #review_form .comment-form-email,
.hx-product-reviews #review_form .form-submit {
	margin: 0;
}

.hx-product-reviews #review_form textarea {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: 110px !important;
	min-height: 110px !important;
	max-height: 240px !important;
	margin: 0;
	padding: var(--hx-sp-3);
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius-sm);
	background: #fff;
	color: var(--hx-ink);
	font: inherit;
	font-size: var(--hx-fs-sm);
	line-height: 1.5;
	resize: vertical;
	box-sizing: border-box;
}

.hx-product-reviews #review_form input[type="text"],
.hx-product-reviews #review_form input[type="email"] {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 42px;
	margin: 0;
	padding: var(--hx-sp-2) var(--hx-sp-3);
	border: 1px solid var(--hx-line);
	border-radius: var(--hx-radius-sm);
	background: #fff;
	color: var(--hx-ink);
	font: inherit;
	font-size: var(--hx-fs-sm);
	box-sizing: border-box;
}

.hx-product-reviews #review_form textarea:focus-visible,
.hx-product-reviews #review_form input:focus-visible {
	outline: 2px solid var(--hx-primary);
	outline-offset: 1px;
	border-color: var(--hx-primary);
}

.hx-product-reviews #review_form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--hx-sp-2);
	font-size: var(--hx-fs-xs);
}

.hx-product-reviews #review_form .comment-form-cookies-consent input {
	margin-top: 0.25em;
}

.hx-product-reviews #review_form .form-submit {
	margin: var(--hx-sp-3) 0 0;
	display: flex;
	justify-content: flex-end;
}

.hx-product-reviews #review_form .form-submit input {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 140px;
	margin: 0;
	padding: var(--hx-sp-2) var(--hx-sp-6);
	border: 0;
	border-radius: var(--hx-radius);
	background: var(--hx-primary-fill);
	color: #fff;
	font: inherit;
	font-size: var(--hx-fs-sm);
	font-weight: 800;
	cursor: pointer;
	transition: background-color var(--hx-dur) var(--hx-ease);
}

.hx-product-reviews #review_form .form-submit input:hover {
	background: var(--hx-primary-dark);
}

.hx-product-reviews #review_form .form-submit input:focus-visible {
	outline: 2px solid var(--hx-primary);
	outline-offset: 3px;
}

@media (min-width: 640px) {
	.hx-product-reviews #review_form .comment-form-author,
	.hx-product-reviews #review_form .comment-form-email {
		display: inline-block;
		width: calc(50% - var(--hx-sp-2));
		vertical-align: top;
	}

	.hx-product-reviews #review_form .comment-form-author {
		margin-inline-end: calc(var(--hx-sp-3) - 2px);
	}
}

@media (max-width: 767px) {
	.hx-product-reviews {
		width: calc(100% - 1.5rem);
		padding-top: var(--hx-sp-5);
	}

	.hx-product-reviews__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.hx-product-reviews__summary {
		margin-inline-start: 0;
	}

	.hx-product-reviews .comment_container {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: var(--hx-sp-2);
		padding: var(--hx-sp-3);
	}

	.hx-product-reviews .comment_container img.avatar {
		width: 40px !important;
		height: 40px !important;
	}

	.hx-product-reviews #review_form_wrapper {
		padding: var(--hx-sp-3);
	}

	.hx-product-reviews #review_form .form-submit {
		justify-content: stretch;
	}

	.hx-product-reviews #review_form .form-submit input {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.hx-product-page {
		padding-bottom: 6rem;
	}

	.hx-product-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--hx-sp-5);
	}

	.hx-product-gallery {
		position: static;
	}

	.hx-product-gallery .flex-control-thumbs li {
		flex: 0 0 60px !important;
	}

	.hx-product-purchase .product_title {
		font-size: clamp(1.6rem, 7vw, 2.25rem);
	}

	.hx-product-page .hx-product-info table.shop_attributes tr {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		padding-block: var(--hx-sp-3);
		gap: var(--hx-sp-2);
		text-align: center;
	}

	.hx-product-page .hx-product-info table.shop_attributes th {
		font-size: var(--hx-fs-xs);
		margin-inline-end: 0;
		text-align: center;
		width: 100%;
	}

	.hx-product-page .hx-product-info table.shop_attributes td {
		text-align: center;
		width: 100%;
	}

	.hx-product-page .hx-product-info table.shop_attributes td p {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--hx-sp-2);
	}

	/* Tag-style values: hide the ", " WooCommerce prints between the links. */
	.hx-product-page .hx-product-info table.shop_attributes td p:has(a) {
		font-size: 0;
	}

	table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__quantity {
		width: 75px;
		padding-inline-end: var(--hx-sp-2);
	}

	table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__quantity input.qty {
		width: 65px;
		height: 2.4rem;
		font-size: var(--hx-fs-base);
	}

	table.woocommerce-grouped-product-list td.woocommerce-grouped-product-list-item__price .woocommerce-Price-amount {
		font-size: var(--hx-fs-sm);
	}

	.hx-faq__q {
		padding: var(--hx-sp-3) var(--hx-sp-4);
		font-size: var(--hx-fs-sm);
	}

	.hx-faq__a {
		padding: var(--hx-sp-3) var(--hx-sp-4) var(--hx-sp-4);
		font-size: var(--hx-fs-sm);
	}

	.hx-product-specifications th,
	.hx-product-specifications td {
		padding: var(--hx-sp-2) var(--hx-sp-3);
	}

	.hx-product-specifications dl {
		grid-template-columns: minmax(90px, 40%) minmax(0, 1fr);
	}

	.hx-product-related .related > h2,
	.hx-product-related .upsells > h2 {
		font-size: var(--hx-fs-xl);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hx-faq__item,
	.hx-faq__q,
	.hx-faq__q::after,
	.hx-product-gallery .woocommerce-product-gallery__trigger,
	.hx-product-gallery .flex-control-thumbs img {
		transition: none;
	}
}

/* ==========================================================================
   Product description (#description) — spacing + dark headings
   --------------------------------------------------------------------------
   The description HTML comes from the product editor, so the markup is not
   predictable (<p><img></p>, <figure>, stray <br>, inline styles, h1–h6...).
   Everything below is scoped to .hx-product-description and tuned through the
   variables in the first block — change a value there, not the rules.
   ========================================================================== */

.hx-product-description {
	/* Spacing */
	--hx-desc-edge: var(--hx-sp-10);      /* space at the very start / end  */
	--hx-desc-gap: var(--hx-sp-4);        /* between normal blocks          */
	--hx-desc-img-gap: var(--hx-sp-3);    /* small gap around images        */
	--hx-desc-head-gap-top: var(--hx-sp-4);
	--hx-desc-head-gap-bottom: var(--hx-sp-3);

	/* Accent colour of the section title bars (white text on top). */
	--hx-desc-accent: #2b8ad6;

	/* h1–h6 text: ONE hue (the accent blue), smooth steps from deep (h1/h2)
	   to medium-dark (h6). Each step mixes the accent with a little less black,
	   so the blue stays visible next to the near-black body text.
	   Hex values are fallbacks for browsers without color-mix(). */
	--hx-desc-h1: #16456b;
	--hx-desc-h2: #16456b;
	--hx-desc-h3: #174b74;
	--hx-desc-h4: #19507c;
	--hx-desc-h5: #1b5787;
	--hx-desc-h6: #1d5e91;
}

@supports (color: color-mix(in srgb, red 50%, black)) {
	.hx-product-description {
		--hx-desc-h1: color-mix(in srgb, var(--hx-desc-accent) 50%, #000);
		--hx-desc-h2: color-mix(in srgb, var(--hx-desc-accent) 50%, #000);
		--hx-desc-h3: color-mix(in srgb, var(--hx-desc-accent) 54%, #000);
		--hx-desc-h4: color-mix(in srgb, var(--hx-desc-accent) 58%, #000);
		--hx-desc-h5: color-mix(in srgb, var(--hx-desc-accent) 63%, #000);
		--hx-desc-h6: color-mix(in srgb, var(--hx-desc-accent) 68%, #000);
	}
}

/* 1. Bigger breathing room at the start and at the end of the section. */
.hx-product-story > .hx-product-description {
	padding-block: var(--hx-desc-edge);
}

.hx-product-description > :last-child {
	margin-block-end: 0;
}

/* 2. Even rhythm between blocks, and no ghost gaps from empty paragraphs. */
.hx-product-description > * + * {
	margin-block-start: var(--hx-desc-gap);
}

.hx-product-description p {
	margin-block: 0;
}

.hx-product-description p:empty,
.hx-product-description p:has(> br:only-child),
.hx-product-description br + br {
	display: none;
}

/* 3. Images / videos: block level, centred, small gap above and below. */
.hx-product-description img,
.hx-product-description video,
.hx-product-description figure,
.hx-product-description .wp-block-image,
.hx-product-description .wp-caption {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

.hx-product-description > * + img,
.hx-product-description > img + *,
.hx-product-description > * + figure,
.hx-product-description > figure + *,
.hx-product-description > * + .wp-block-image,
.hx-product-description > .wp-block-image + *,
.hx-product-description > * + p:has(> img:only-child),
.hx-product-description > p:has(> img:only-child) + *,
.hx-product-description > * + p:has(> a:only-child > img:only-child),
.hx-product-description > p:has(> a:only-child > img:only-child) + * {
	margin-block-start: var(--hx-desc-img-gap);
}

.hx-product-description > img,
.hx-product-description > figure,
.hx-product-description > .wp-block-image,
.hx-product-description > p:has(> img:only-child),
.hx-product-description > p:has(> a:only-child > img:only-child) {
	margin-block-end: var(--hx-desc-img-gap);
}

.hx-product-description figcaption,
.hx-product-description .wp-caption-text {
	margin-block-start: var(--hx-sp-2);
	font-size: var(--hx-fs-sm);
	color: var(--hx-ink-muted);
	text-align: center;
}

.hx-product-description iframe,
.hx-product-description video {
	width: 100%;
	border: 0;
}

.hx-product-description iframe[src*="youtube"],
.hx-product-description iframe[src*="vimeo"] {
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: var(--hx-radius);
}

/* 4. Headings inside the description (h1–h6): plain text in the accent
      colour. No box, no border. Editor inline colours are overridden. */
.hx-product-story .hx-product-description :is(h1, h2, h3, h4, h5, h6):not(.hx-product-section__title) {
	margin-block: var(--hx-desc-head-gap-top) var(--hx-desc-head-gap-bottom);
	padding: 0;
	background: none !important;
	color: var(--hx-desc-h2) !important;
	border: 0;
	font-weight: 700;
	line-height: 1.4;
	text-align: start;
	text-wrap: balance;
}

.hx-product-story .hx-product-description :is(h1, h2, h3, h4, h5, h6):not(.hx-product-section__title) * {
	color: inherit !important;
	background: transparent !important;
}

.hx-product-story .hx-product-description :is(h1, h2):not(.hx-product-section__title) { font-size: var(--hx-fs-xl); }
.hx-product-story .hx-product-description h3:not(.hx-product-section__title) { font-size: var(--hx-fs-lg); }
.hx-product-story .hx-product-description :is(h4, h5, h6):not(.hx-product-section__title) { font-size: var(--hx-fs-base); }

.hx-product-story .hx-product-description h1:not(.hx-product-section__title) { color: var(--hx-desc-h1) !important; }
.hx-product-story .hx-product-description h2:not(.hx-product-section__title) { color: var(--hx-desc-h2) !important; }
.hx-product-story .hx-product-description h3:not(.hx-product-section__title) { color: var(--hx-desc-h3) !important; }
.hx-product-story .hx-product-description h4:not(.hx-product-section__title) { color: var(--hx-desc-h4) !important; }
.hx-product-story .hx-product-description h5:not(.hx-product-section__title) { color: var(--hx-desc-h5) !important; }
.hx-product-story .hx-product-description h6:not(.hx-product-section__title) { color: var(--hx-desc-h6) !important; }

/* The first element has no neighbour above it, so no extra top gap. */
.hx-product-story .hx-product-description > :is(h1, h2, h3, h4, h5, h6):not(.hx-product-section__title):first-child {
	margin-block-start: 0;
}

/* 4b. Section titles (Product details, Additional information, ...):
       the filled bar in the accent colour, no side accent. */
.hx-product-section__title {
	display: block;
	padding: var(--hx-sp-3) var(--hx-sp-5);
	background: var(--hx-desc-accent, #2b8ad6);
	color: #fff;
	border: 0;
	border-radius: var(--hx-radius);
	text-align: center;
}

/* 5. Mobile: slightly tighter, edges stay generous. */
@media (max-width: 640px) {
	.hx-product-description {
		--hx-desc-edge: var(--hx-sp-8);
		--hx-desc-gap: var(--hx-sp-3);
	}

	.hx-product-section__title {
		padding: var(--hx-sp-2) var(--hx-sp-4);
	}
}

/* 6. Related products: less empty space above the title. */
.hx-product-related .hx-product-section__title {
	margin-block-start: var(--hx-sp-2);
}

@media (min-width: 768px) {
	.hx-product-page {
		padding-block-end: var(--hx-sp-4);
	}
}
