/*!
 * Grosmac single product catalogue layer.
 *
 * Scoped to WooCommerce product pages. It styles the native Grosmac product
 * datasheet without changing product content, URLs or SEO metadata.
 *
 * Layout polish v2026-05 — commerce stack, fichas industriales, tabs subrayadas.
 */

@view-transition {
	navigation: auto;
}

.gm-product-card__image,
body.single-product .gm-product-hero__image {
	view-transition-name: product-hero;
}

body.single-product .gm-product-spec-band {
	margin-block: var(--gm-space-6, 1.5rem) 0;
	padding: var(--gm-space-5, 1.25rem);
	background: var(--gm-color-surface, #fff);
	border: 1px solid var(--gm-color-line, #e5e7eb);
	border-radius: var(--gm-radius-md, 0);
}

body.single-product .gm-product-spec-band__title {
	margin: 0 0 var(--gm-space-4, 1rem);
	font-size: var(--gm-text-sm, 0.875rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gm-color-brand, #f39200);
}

body.single-product .gm-product-spec-band__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--gm-space-4, 1rem);
	margin: 0;
}

body.single-product .gm-product-spec-band__grid .wp-block-columns,
body.single-product .gm-product-spec-band__grid.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--gm-space-4, 1rem);
	margin: 0;
}

body.single-product .gm-product-spec-band__item,
body.single-product .gm-product-spec-band__grid p {
	margin: 0;
	font-size: var(--gm-text-sm, 0.875rem);
	line-height: 1.5;
	color: var(--gm-color-ink, #1a1a1a);
}

body.single-product .gm-product-spec-band__grid .wp-block-column:empty,
body.single-product .gm-product-spec-band__grid .wp-block-column:has(p:empty) {
	display: none;
}

body.single-product .gm-product-spec-glance {
	margin-block: var(--gm-space-4, 1rem) var(--gm-space-6, 1.5rem);
	padding: var(--gm-space-5, 1.25rem);
	background: var(--gm-color-surface-muted, #f8f6f3);
	border: 1px solid var(--gm-color-line, #e5e7eb);
	border-radius: var(--gm-radius-md, 0);
}

body.single-product .gm-product-spec-glance__title {
	margin: 0 0 var(--gm-space-4, 1rem);
	font-size: var(--gm-text-sm, 0.875rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gm-color-brand, #f39200);
}

body.single-product .gm-product-spec-glance__table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--gm-text-sm, 0.875rem);
	line-height: 1.5;
}

body.single-product .gm-product-spec-glance__table th,
body.single-product .gm-product-spec-glance__table td {
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid var(--gm-color-line, #e5e7eb);
	text-align: left;
	vertical-align: top;
}

body.single-product .gm-product-spec-glance__table th {
	width: 38%;
	font-weight: 600;
	color: var(--gm-color-ink-muted, #4b5563);
}

body.single-product .gm-product-spec-glance__table tr:last-child th,
body.single-product .gm-product-spec-glance__table tr:last-child td {
	border-bottom: 0;
}

body.single-product {
	--gm-product-page-width: var(--gm-shell-wide);
	--gm-card-accent: var(--gm-bread-orange);
	--gm-card-accent-2: var(--gm-bread-golden);
	--gm-card-accent-3: var(--gm-bread-cacao);
	--gm-product-summary-sticky-top: clamp(88px, 11vw, 128px);
	--gm-product-tabs-sticky-top: var(--gm-product-summary-sticky-top);
	background: var(--gm-color-canvas);
	color: var(--gm-color-ink);
	font-family: var(--gm-font-body);
	overflow-x: hidden;
	scroll-padding-top: var(--gm-product-summary-sticky-top);
}

body.single-product #content,
body.single-product .site-content,
body.single-product .col-full {
	background: var(--gm-color-canvas);
}

body.single-product .col-full {
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

/*
 * Suprime margin-top heredado de #page .site-content para arrancar la ficha
 * justo bajo el breadcrumb sin banda gris vacía.
 */
body.single-product #page .site-content,
body.single-product.woocommerce-page #page .site-content,
body.single-product #content.site-content {
	margin-top: 0 !important;
}

body.single-product #primary.site-main,
body.single-product .site-main,
body.single-product .site-content .woocommerce {
	padding-top: 0 !important;
}

body.single-product .product_title.entry-title:not(.gm-product-title--auto-fit) {
	max-width: 920px;
	margin: 0;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	/* Compact hero: keep title close to image, max two lines. */
	font-size: var(--gm-title-page);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.05;
	text-transform: uppercase;
}

/* Ajuste dinámico a máx. 2 líneas (product-title-fit.js). Valor inicial compacto. */
body.single-product .product_title.entry-title.gm-product-title--auto-fit {
	max-width: 100%;
	margin: 0;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: var(--gm-title-page);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.02;
	text-transform: uppercase;
	word-break: normal;
	overflow-wrap: anywhere;
	text-wrap: balance;
	hyphens: manual;
}

body.single-product .gm-product-title__fit {
	display: block;
	overflow: visible;
	text-wrap: balance;
}

body.single-product .gm-product-title__fit--split {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
}

body.single-product .gm-product-title__fit--split .gm-product-title__lead {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-wrap: balance;
}

body.single-product .gm-product-title__row-sub {
	display: block;
	min-width: 0;
	line-height: 1.15;
	text-wrap: pretty;
}

body.single-product .gm-product-title--auto-fit:not(.gm-title-fit--done):not(.gm-product-title--split) .gm-product-title__fit {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	max-height: 2.1em;
}

body.single-product .gm-product-title--auto-fit.gm-title-fit--done .gm-product-title__fit,
body.single-product .gm-product-title--split .gm-product-title__fit {
	display: flex;
	flex-direction: column;
	overflow: visible;
	max-height: none;
	-webkit-line-clamp: unset;
}

body.single-product .gm-product-title__sep {
	display: inline;
	margin-right: 0.2em;
	font-style: normal;
	font-weight: 900;
	font-size: 1.1em;
	line-height: inherit;
	vertical-align: baseline;
	color: var(--gm-color-brand);
	transform: skewX(-12deg);
	opacity: 1;
}

body.single-product .gm-product-title--split .gm-product-title__sub {
	display: inline;
	font-style: italic;
	font-weight: 700;
	letter-spacing: -0.03em;
	text-transform: none;
	font-size: 0.88em;
	color: color-mix(in srgb, var(--gm-color-heading) 92%, var(--gm-color-brand-deep));
	overflow-wrap: anywhere;
}

body.single-product .gm-product-title--auto-fit:not(.gm-title-fit--done) .gm-product-title__row-sub {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* El eyebrow de marca está en .gm-single-product__eyebrow--aside (columna derecha). */

body.single-product span.onsale {
	min-width: 0;
	min-height: 30px;
	padding: 0 12px;
	background: var(--gm-color-brand);
	border-radius: 0;
	color: var(--gm-color-brand-contrast);
	font-family: var(--gm-font-display);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.11em;
	line-height: 30px;
	text-transform: uppercase;
}

body.single-product .woocommerce-product-gallery {
	overflow: hidden;
	background: var(--gm-color-surface);
	border-radius: var(--gm-radius-sm);
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image {
	background: transparent;
}

body.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

body.single-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-Tabs-panel {
	color: var(--gm-color-muted);
	font-size: 15px;
	line-height: 1.75;
}

body.single-product .woocommerce-Tabs-panel {
	margin-top: 20px;
	padding: 20px;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-Tabs-panel h4 {
	margin: 28px 0 12px;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-weight: 800;
	letter-spacing: -0.035em;
	text-transform: uppercase;
}

body.single-product .woocommerce-Tabs-panel h4 {
	padding-bottom: 8px;
	border-bottom: 2px solid var(--gm-color-brand);
	font-size: 18px;
}

body.single-product .woocommerce-Tabs-panel ul,
body.single-product .woocommerce-Tabs-panel ol {
	display: grid;
	gap: 8px;
	margin: 14px 0 22px;
	padding-left: 0;
	list-style: none;
}

body.single-product .woocommerce-Tabs-panel li {
	position: relative;
	padding-left: 22px;
}

body.single-product .woocommerce-Tabs-panel li::before {
	content: "";
	position: absolute;
	top: 0.74em;
	left: 0;
	width: 9px;
	height: 3px;
	background: var(--gm-color-brand);
}

body.single-product .cart,
body.single-product form.cart {
	display: grid;
	gap: 14px;
	margin: 0;
}

body.single-product .single_add_to_cart_button,
body.single-product .button,
body.single-product button[type="submit"] {
	width: 100%;
	min-height: 48px;
	border-radius: var(--gm-radius-sm);
	background: var(--gm-color-brand) !important;
	color: var(--gm-color-brand-contrast) !important;
	font-family: var(--gm-font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.single-product .product_meta {
	display: grid;
	gap: 8px;
	margin: 0;
	color: var(--gm-color-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
}

body.single-product .product_meta a {
	color: var(--gm-color-brand-deep);
	text-decoration: none;
}

/* Native WooCommerce single-product layout. */
body.single-product .gm-product-datasheet {
	position: relative;
	max-width: 100vw;
	padding: clamp(8px, 1.4vw, 14px) 0 62px;
	background: var(--gm-color-canvas);
	overflow-x: clip;
	overflow-y: visible;
}

/* Watermark removed from PDP — cluttered the hero and fought the product title. */
body.single-product .gm-product-datasheet::before {
	content: none;
	display: none;
}

body.single-product .gm-single-product {
	position: relative;
	z-index: 1;
	max-width: var(--gm-product-page-width);
	margin: 0 auto 58px;
	padding: 0;
}

body.single-product .gm-single-product__header {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(8px, 1.2vw, 14px);
	align-items: start;
	margin-bottom: clamp(8px, 1.2vw, 14px);
	padding: 0;
	border: 0;
}

body.single-product .gm-single-product__eyebrow {
	margin: 0;
	color: var(--gm-color-brand-deep);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.single-product .gm-single-product__header-aside,
body.single-product .gm-single-product__eyebrow--aside {
	display: none;
}

body.single-product .gm-single-product__title-block {
	position: relative;
	z-index: 2;
	min-width: 0;
}

body.single-product .gm-single-product__spec-strip {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: var(--gm-meta-chip-gap);
	align-items: stretch;
}

body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--gm-meta-chip-min-height);
	padding: var(--gm-meta-chip-padding-y) var(--gm-meta-chip-padding-x);
	background:
		var(--gm-card-multicolor-strip) top left / 100% var(--gm-chrome-strip-height) no-repeat,
		var(--gm-color-surface);
	border: 1px solid var(--gm-color-line);
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: var(--gm-meta-chip-font-size);
	font-weight: 800;
	letter-spacing: var(--gm-label-letter-spacing);
	line-height: var(--gm-meta-chip-line-height);
	text-align: center;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: break-word;
	hyphens: auto;
}

body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell a {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	align-self: stretch;
	min-height: 100%;
	min-width: 0;
	padding: 2px;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: center;
	text-decoration: none;
	text-transform: inherit;
}

body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell a:hover {
	color: var(--gm-color-brand-deep);
}

body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell--sku {
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: var(--gm-meta-chip-font-size);
	font-weight: 700;
}

body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell--sku .gm-single-product__sku-label {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gm-color-brand-deep);
}

body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell--sku .gm-single-product__sku-plain {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 9px;
	font-weight: 600;
	color: inherit;
	letter-spacing: 0.04em;
	line-height: inherit;
	text-align: inherit;
	text-transform: inherit;
}

body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell:not(.gm-single-product__spec-strip-cell--sku) {
	text-transform: none;
	font-size: calc(var(--gm-meta-chip-font-size) + 1px);
	font-weight: 700;
	letter-spacing: 0.01em;
}

body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell--empty {
	display: none;
}

@media (min-width: 901px) {
	body.single-product .gm-single-product__spec-strip {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 0;
		align-items: stretch;
		box-shadow: inset 0 4px 0 0 var(--gm-color-brand);
		border: 1px solid var(--gm-color-line);
		background: var(--gm-color-surface);
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell {
		min-height: 56px;
		padding: 14px 12px;
		border: 0;
		border-right: 1px solid var(--gm-color-line);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell:last-child {
		border-right: 0;
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell--empty {
		background: color-mix(in srgb, var(--gm-color-surface-subtle) 82%, var(--gm-color-surface));
	}
}
body.single-product .gm-product-banner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(14px, 2vw, 24px);
	align-items: center;
	margin: 0 0 22px;
}

body.single-product .gm-product-banner p:last-child {
	margin-bottom: 0;
}

body.single-product .gm-product-banner__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--gm-cta-min-height-lg);
	padding: 0 20px;
	background: var(--gm-panel-accent, var(--gm-color-brand));
	border: 1px solid var(--gm-panel-accent, var(--gm-color-brand));
	border-radius: var(--gm-radius-sm);
	color: #fff;
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

body.single-product .gm-single-product__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(min(100%, 360px), 0.62fr);
	gap: clamp(18px, 2.4vw, 34px);
	align-items: start;
}

@media (min-width: 1200px) {
	body.single-product .gm-single-product__layout {
		grid-template-columns: minmax(0, 1.25fr) minmax(min(100%, 420px), 0.75fr);
	}
}

body.single-product .gm-single-product__kpi-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

body.single-product .gm-single-product__kpi {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	background: var(--gm-color-surface-subtle);
	border: 1px solid var(--gm-color-line);
	border-top: 3px solid var(--gm-color-brand);
}

body.single-product .gm-single-product__kpi-value {
	font-family: var(--gm-font-display);
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--gm-color-heading);
}

body.single-product .gm-single-product__kpi-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gm-color-brand-deep);
}

@media (max-width: 767px) {
	body.single-product .gm-single-product__kpi-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 0 0 12px;
	}

	body.single-product .gm-single-product__kpi {
		min-height: 56px;
		padding: 10px 12px;
	}

	body.single-product .gm-single-product__kpi-value {
		font-size: 13px;
	}
}

body.single-product .gm-money,
body.single-product .gm-money .woocommerce-Price-amount,
body.single-product .gm-configurator__totals-row strong,
body.single-product .gm-configurator__variant-card-price .gm-money {
	font-family: var(--gm-font-display);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: -0.02em;
}

body.single-product .gm-money--total,
body.single-product .gm-configurator__totals-row--grand strong {
	font-size: 1.15em;
	color: var(--gm-color-brand-deep);
}

body.single-product .gm-money--delta {
	font-size: 13px;
	font-weight: 700;
	color: var(--gm-color-brand-deep);
}

body.single-product .gm-money .woocommerce-Price-currencySymbol {
	font-family: inherit;
	font-weight: inherit;
}

@media (min-width: 901px) {
	body.single-product .gm-single-product__commerce-stack {
		position: sticky;
		top: var(--gm-product-summary-sticky-top, 88px);
		z-index: 4;
	}
}

body.single-product .gm-single-product__excerpt {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--gm-color-muted);
}

body.single-product .gm-single-product__excerpt .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

body.single-product .gm-single-product__gallery,
body.single-product .gm-single-product__summary,
body.single-product .gm-single-product__details {
	background:
		var(--gm-multicolor-strip) top left / 100% var(--gm-line-accent-height) no-repeat,
		var(--gm-color-surface);
	border: 1px solid var(--gm-color-line);
	border-radius: var(--gm-radius-lg);
	box-shadow: var(--gm-shadow-card);
}

body.single-product .gm-single-product__gallery {
	--gm-product-gallery-viewport-height: clamp(400px, 48vw, 540px);
}

body.single-product .gm-single-product__gallery,
body.single-product .gm-single-product__summary {
	padding: clamp(16px, 2vw, 24px);
}

body.single-product .gm-single-product__gallery .woocommerce-product-gallery {
	border: 1px solid var(--gm-color-line-strong);
	box-shadow: none;
	background: #fff;
}

/*
 * Flexslider mueve el carril con transform/float sobre .woocommerce-product-gallery__wrapper.
 * No usar flex en .flex-viewport: el carril lo mueve Flexslider con transform/float
 * y el flex del viewport encoge/malcentra el carril y rompe slides.
 */
body.single-product .gm-single-product__gallery .woocommerce-product-gallery .flex-viewport {
	position: relative;
	height: var(--gm-product-gallery-viewport-height) !important;
	min-height: var(--gm-product-gallery-viewport-height);
	overflow: hidden;
	background: #fff;
}

/* Carril horizontal: ancho lo fija JS; evitar flex-shrink si algún ancestro es flex. */
body.single-product .gm-single-product__gallery .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper {
	flex-shrink: 0;
	height: auto !important;
	min-height: 0;
}

/* Mantener visible la imagen cuando el zoom no esta activo. */
body.single-product .gm-single-product__gallery .woocommerce-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:hover a img {
	opacity: 1 !important;
}

body.single-product .gm-single-product__gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--gm-product-gallery-viewport-height);
	box-sizing: border-box;
}

body.single-product .gm-single-product__gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(.gm-product-gallery__slide--video) a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-height: var(--gm-product-gallery-viewport-height);
}

body.single-product .gm-single-product__gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(.gm-product-gallery__slide--video) img {
	max-height: var(--gm-product-gallery-viewport-height);
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}

body.single-product .gm-single-product__gallery .gm-product-gallery__slide--video .gm-product-gallery__video-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: clamp(8px, 2vw, 14px);
	box-sizing: border-box;
}

body.single-product .gm-single-product__gallery .gm-product-gallery__video-frame {
	width: min(100%, calc(var(--gm-product-gallery-viewport-height) * 1.78));
	max-width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--gm-color-surface-subtle);
	border: 1px solid var(--gm-color-line);
	box-sizing: border-box;
}

body.single-product .gm-single-product__gallery .gm-product-gallery__video-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

body.single-product .gm-single-product__gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: 8px;
	padding: 12px 10px;
	margin: 0;
	background: var(--gm-color-surface-subtle);
	border-top: 1px solid var(--gm-color-line);
	list-style: none;
}

body.single-product .gm-single-product__gallery .flex-control-thumbs li {
	width: auto;
	float: none;
	margin: 0;
}

body.single-product .gm-single-product__gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid var(--gm-color-line);
	border-radius: 0;
	opacity: 0.72;
	transition: border-color var(--gm-transition-fast), opacity var(--gm-transition-fast), transform var(--gm-transition-fast);
}

body.single-product .gm-single-product__gallery .flex-control-thumbs img.flex-active,
body.single-product .gm-single-product__gallery .flex-control-thumbs img:hover {
	border-color: var(--gm-color-brand);
	opacity: 1;
	outline: 2px solid var(--gm-color-brand);
	outline-offset: -1px;
	transform: none;
}

/* Indica miniatura del slide de vídeo (icono play). La clase la asigna product-gallery-video.js */
body.single-product .gm-single-product__gallery .flex-control-thumbs li.gm-product-gallery__thumb--video {
	position: relative;
}

body.single-product .gm-single-product__gallery .flex-control-thumbs li.gm-product-gallery__thumb--video::after {
	content: "";
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	pointer-events: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='21' fill='rgba(0,0,0,0.52)'/%3E%3Cpath fill='%23fff' d='M19 15v18l14-9z'/%3E%3C/svg%3E") center / 62% 62% no-repeat;
}

body.single-product .gm-single-product__gallery .woocommerce-product-gallery__trigger {
	opacity: 1;
	border: 1px solid var(--gm-color-line-strong);
	background: #fff !important;
	color: var(--gm-color-ink) !important;
}

body.single-product .gm-single-product__gallery .woocommerce-product-gallery__trigger:hover {
	border-color: var(--gm-color-brand);
	color: var(--gm-color-brand-deep) !important;
}

@media (min-width: 1101px) {
	body.single-product .gm-single-product__summary {
		position: sticky;
		top: var(--gm-product-summary-sticky-top);
		align-self: start;
	}
}

body.single-product .gm-single-product__meta-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

body.single-product .gm-single-product__meta-pills a,
body.single-product .gm-single-product__meta-pills span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 10px;
	border: 1px solid var(--gm-color-line);
	border-radius: 0;
	color: var(--gm-color-brand-deep);
	font-family: var(--gm-font-display);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

body.single-product .gm-single-product__commerce-stack {
	display: grid;
	gap: clamp(12px, 1.8vw, 18px);
	margin-bottom: 4px;
}

body.single-product .gm-single-product__price-panel {
	padding: clamp(14px, 2vw, 18px) clamp(16px, 2vw, 20px);
	background: var(--gm-neutral-industrial-white);
	border: 1px solid var(--gm-color-line-strong);
	border-left: 4px solid var(--gm-color-brand);
	box-shadow: 4px 4px 0 0 var(--gm-color-ink);
}

/* Same hierarchy as archive `.gm-card__price`; scaled for product summary (grosmac-shop.css). */
body.single-product .gm-single-product__price-panel .gm-single-product__price-stack.gm-card__price {
	gap: clamp(2px, 0.4vw, 4px);
	font-size: var(--gm-title-section);
	font-weight: 800;
	letter-spacing: -0.035em;
}

/*
 * Row 1: amount + transport hint side by side; the hint wraps to its own line
 * if the precio is too wide to share the row. Row 2 (label) renders below.
 */
body.single-product .gm-single-product__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: clamp(10px, 1.4vw, 16px);
	row-gap: 2px;
	min-width: 0;
}

body.single-product .gm-single-product__price-row .gm-card__price-main {
	flex: 0 0 auto;
}

body.single-product .gm-single-product__price-panel .gm-single-product__price-stack .gm-card__price-label {
	order: 2;
	font-size: clamp(10px, 1.15vw, 11px);
	letter-spacing: 0.12em;
	line-height: 1.25;
	margin-top: 2px;
}

body.single-product .gm-single-product__price-panel .gm-single-product__price-stack .gm-card__price-hint {
	flex: 1 1 200px;
	min-width: 0;
	font-size: clamp(11px, 1.25vw, 12px);
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	color: var(--gm-color-muted);
	max-width: 42ch;
}

body.single-product .gm-single-product__summary .woocommerce-product-details__short-description {
	margin: 0;
	color: var(--gm-color-muted);
	font-size: 15px;
	line-height: 1.65;
}

body.single-product .gm-single-product__actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: clamp(14px, 2vw, 18px) 0 10px;
}

body.single-product .gm-single-product__secondary-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
}

body.single-product .gm-single-product__cta-note {
	margin: 0;
	color: var(--gm-color-muted);
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
}

body.single-product .gm-single-product__quote-basket--primary .gm-quote-add--primary,
body.single-product .gm-single-product__quote-basket--primary .gm-quote-add {
	width: 100%;
	max-width: none;
}

body.single-product .gm-single-product__quote-basket--primary .gm-quote-add__label {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	text-align: center;
	line-height: 1.25;
}

body.single-product .gm-single-product__button--lead {
	grid-column: 1 / -1;
	min-height: 52px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.12em;
	box-shadow: 4px 4px 0 0 var(--gm-color-ink);
	transition: transform var(--gm-transition-fast), box-shadow var(--gm-transition-fast), background var(--gm-transition-fast), border-color var(--gm-transition-fast);
	width: 100%;
	box-sizing: border-box;
}

body.single-product .gm-single-product__button--lead:hover {
	background: var(--gm-color-brand-deep);
	border-color: var(--gm-color-ink);
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 0 var(--gm-color-ink);
	color: #fff;
}

body.single-product .gm-single-product__button,
body.single-product .gm-single-product__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border-radius: var(--gm-radius-sm);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

body.single-product .gm-single-product__button {
	background: var(--gm-color-brand);
	border: 2px solid var(--gm-color-ink);
	color: #fff;
}

body.single-product .gm-single-product__button:hover {
	background: var(--gm-color-ink);
	border-color: var(--gm-color-ink);
	color: #fff;
}

body.single-product .gm-single-product__link {
	background: #fff;
	border: 2px solid var(--gm-color-ink);
	color: var(--gm-color-ink);
	transition: border-color var(--gm-transition-fast), color var(--gm-transition-fast), background var(--gm-transition-fast);
}

body.single-product .gm-single-product__link:hover {
	border-color: var(--gm-color-brand);
	background: var(--gm-color-surface-subtle);
	color: var(--gm-color-brand-deep);
}

body.single-product .gm-single-product__link--brochure {
	background: #fff;
	border: 2px solid var(--gm-color-ink);
	color: var(--gm-color-heading);
}

body.single-product .gm-single-product__link--brochure:hover {
	border-color: var(--gm-color-brand);
	background: var(--gm-color-surface-subtle);
	color: var(--gm-color-brand-deep);
}

body.single-product .gm-single-product__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

body.single-product .gm-single-product__link-icon {
	flex: 0 0 auto;
	transition: transform var(--gm-transition-fast);
}

body.single-product .gm-single-product__link--brochure:hover .gm-single-product__link-icon {
	transform: translateY(2px);
}

body.single-product .gm-single-product__addons {
	margin: 24px 0 4px;
	padding: 18px 20px;
	background: var(--gm-color-surface-subtle, #f5f3ee);
	border: 1px solid var(--gm-color-divider, #e6e1d4);
	border-radius: 0;
}

body.single-product .gm-single-product__addons-header {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 12px;
}

body.single-product .gm-single-product__addons-header strong {
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gm-color-heading, #1a1a1a);
}

body.single-product .gm-single-product__addons-header span {
	font-size: 13px;
	color: var(--gm-color-muted, #666);
}

body.single-product .gm-single-product__addons-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

body.single-product .gm-single-product__addon-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--gm-color-divider, #e6e1d4);
}

body.single-product .gm-single-product__addon-item:last-child {
	border-bottom: 0;
}

body.single-product .gm-single-product__addon-sku {
	font-family: var(--gm-font-mono, ui-monospace, monospace);
	font-size: 12px;
	color: var(--gm-color-muted, #666);
}

body.single-product .gm-single-product__addon-price {
	font-weight: 700;
	color: var(--gm-color-brand-deep, #b34c1d);
}

/* ---------------------------------------------------------------------------
 * Configurator v2 — build your machine
 * ------------------------------------------------------------------------- */

body.single-product .gm-configurator {
	margin: 18px 0 22px;
	padding: 20px 22px;
	background: linear-gradient(180deg, #fff 0%, var(--gm-color-surface-subtle, #f7f4ee) 100%);
	border: 1px solid var(--gm-color-divider, #e6e1d4);
	border-radius: 0;
	box-shadow: 0 1px 0 rgba(15, 20, 30, 0.04);
}

body.single-product .gm-configurator--v2 {
	padding: clamp(16px, 2vw, 24px);
	border: 2px solid var(--gm-color-ink);
	box-shadow: 4px 4px 0 0 var(--gm-color-line);
}

body.single-product .gm-configurator__hero {
	display: grid;
	gap: 6px;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--gm-color-divider, #e6e1d4);
}

body.single-product .gm-configurator__eyebrow {
	margin: 0;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gm-color-brand-deep);
}

body.single-product .gm-configurator__hero strong {
	font-family: var(--gm-font-display);
	font-size: clamp(17px, 2vw, 20px);
	font-weight: 900;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: var(--gm-color-heading);
}

body.single-product .gm-configurator__hero > span {
	font-size: 13px;
	line-height: 1.5;
	color: var(--gm-color-muted);
}

body.single-product .gm-configurator__layout {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

body.single-product .gm-configurator__steps {
	display: grid;
	gap: 20px;
}

body.single-product .gm-configurator__step-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-family: var(--gm-font-display);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gm-color-heading);
}

body.single-product .gm-configurator__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	background: var(--gm-color-brand);
	color: var(--gm-color-brand-contrast);
	font-size: 12px;
	font-weight: 900;
}

body.single-product .gm-configurator__variant-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

body.single-product .gm-configurator__variant-grid--strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.single-product .gm-configurator__variant-grid--strip .gm-configurator__variant-card {
	flex: 1 1 auto;
	min-width: min(100%, 148px);
	max-width: 100%;
}

body.single-product .gm-configurator__variant-card {
	display: block;
	cursor: pointer;
}

body.single-product .gm-configurator__variant-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

body.single-product .gm-configurator__variant-card-body {
	display: grid;
	gap: 4px;
	min-height: 100%;
	padding: 12px;
	border: 2px solid var(--gm-color-line);
	background: #fff;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

body.single-product .gm-configurator__variant-grid--strip .gm-configurator__variant-card-body {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	min-height: 0;
	padding: 8px 10px;
}

body.single-product .gm-configurator__variant-card-title {
	font-family: var(--gm-font-display);
	font-size: 14px;
	font-weight: 900;
	color: var(--gm-color-heading);
}

body.single-product .gm-configurator__variant-card-range {
	font-size: 12px;
	color: var(--gm-color-muted);
}

body.single-product .gm-configurator__variant-card-price {
	margin-top: auto;
	padding-top: 6px;
}

body.single-product .gm-configurator__variant-card-price del {
	color: var(--gm-muted);
	font-size: 12px;
	font-weight: 500;
	text-decoration: line-through;
	opacity: 0.7;
}

body.single-product .gm-configurator__variant-card-price ins {
	background: transparent;
	text-decoration: none;
}

body.single-product .gm-configurator__variant-grid--strip .gm-configurator__variant-card-price {
	margin-top: 0;
	padding-top: 0;
	margin-left: auto;
	white-space: nowrap;
}

body.single-product .gm-configurator__variant-grid--strip .gm-configurator__variant-card-range {
	white-space: nowrap;
}

body.single-product .gm-configurator__variant-radio:checked + .gm-configurator__variant-card-body,
body.single-product .gm-configurator__variant-card:has(.gm-configurator__variant-radio:checked) .gm-configurator__variant-card-body {
	border-color: var(--gm-color-brand);
	box-shadow: inset 0 3px 0 0 var(--gm-color-brand);
}

body.single-product .gm-configurator__variant-select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.single-product .gm-configurator__summary {
	padding: 16px;
	background: #fff;
	color: var(--gm-color-heading);
	border: 1px solid var(--gm-color-line);
	border-radius: 0;
}

@media (min-width: 960px) {
	body.single-product .gm-configurator__summary {
		position: sticky;
		top: calc(var(--gm-product-summary-sticky-top, 88px) + 12px);
	}
}

body.single-product .gm-configurator__summary-label {
	margin: 0 0 12px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gm-color-muted);
}

body.single-product .gm-configurator__summary .gm-configurator__totals-row {
	color: var(--gm-color-muted);
}

body.single-product .gm-configurator__summary .gm-configurator__totals-row strong,
body.single-product .gm-configurator__summary .gm-money {
	color: var(--gm-color-heading);
}

body.single-product .gm-configurator__summary .gm-configurator__totals-row--grand {
	border-top-color: var(--gm-color-line);
	color: var(--gm-color-heading);
}

body.single-product .gm-configurator__summary .gm-configurator__totals-row--grand strong {
	color: var(--gm-color-brand-deep);
}

body.single-product .gm-configurator__summary .gm-configurator__totals-note {
	color: var(--gm-color-muted);
}

body.single-product .gm-configurator__config-note {
	margin: 10px 0 0;
	padding: 10px 12px;
	font-size: 12px;
	line-height: 1.45;
	background: rgba(243, 146, 0, 0.08);
	border-left: 3px solid var(--gm-color-brand);
	color: var(--gm-color-heading);
}

body.single-product .gm-configurator__config-note[hidden] {
	display: none;
}

body.single-product .gm-configurator__summary-panel {
	margin: 0;
}

body.single-product .gm-configurator__summary-panel > .gm-configurator__summary-body {
	padding-top: 12px;
}

@media (min-width: 900px) {
	body.single-product .gm-configurator__summary-panel {
		display: block;
	}

	body.single-product .gm-configurator__summary-panel > .gm-configurator__summary-body {
		display: block;
		padding-top: 0;
	}

	body.single-product .gm-configurator__summary-toggle {
		display: none;
	}
}

@media (max-width: 899px) {
	body.single-product .gm-configurator__summary-label {
		display: none;
	}
}

@media (max-width: 899px) {
	body.single-product .gm-configurator__summary {
		position: sticky;
		bottom: 0;
		z-index: 6;
		margin-top: 8px;
		padding: 0;
		background: transparent;
	}

	body.single-product .gm-configurator__summary-panel {
		border: 1px solid var(--gm-color-line);
		box-shadow: 0 -4px 16px rgba(15, 20, 30, 0.08);
		background: #fff;
	}

	body.single-product .gm-configurator__summary-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px 16px;
		list-style: none;
		cursor: pointer;
		color: var(--gm-color-heading);
	}

	body.single-product .gm-configurator__summary-toggle::-webkit-details-marker {
		display: none;
	}

	body.single-product .gm-configurator__summary-toggle-label {
		font-size: 10px;
		font-weight: 800;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--gm-color-muted);
	}

	body.single-product .gm-configurator__summary-toggle-total {
		font-family: var(--gm-font-display);
		font-size: 18px;
		font-weight: 900;
		color: var(--gm-color-brand);
	}

	body.single-product .gm-configurator__summary-panel[open] .gm-configurator__summary-body {
		padding: 0 16px 16px;
	}

	body.single-product .gm-configurator__summary-panel:not([open]) .gm-configurator__summary-body {
		display: none;
	}
}

body.single-product .gm-configurator__header {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--gm-color-divider, #e6e1d4);
}

body.single-product .gm-configurator__header strong {
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gm-color-heading, #14191f);
}

body.single-product .gm-configurator__header span {
	font-size: 13px;
	line-height: 1.45;
	color: var(--gm-color-muted, #5b6470);
}

body.single-product .gm-configurator__group {
	border: 0;
	margin: 0 0 16px;
	padding: 0;
}

body.single-product .gm-configurator__group legend {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gm-color-brand-deep, #b34c1d);
	margin-bottom: 8px;
}

body.single-product .gm-configurator__select-wrap {
	position: relative;
}

body.single-product .gm-configurator__select-wrap::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--gm-color-ink, #14191f);
	border-bottom: 2px solid var(--gm-color-ink, #14191f);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

body.single-product .gm-configurator [data-gm-variation] {
	width: 100%;
	padding: 12px 38px 12px 14px;
	border: 2px solid var(--gm-color-ink, #14191f);
	border-radius: 0;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	color: var(--gm-color-heading, #14191f);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

body.single-product .gm-configurator [data-gm-variation]:focus {
	outline: 2px solid var(--gm-color-brand, #f39200);
	outline-offset: 2px;
}

body.single-product .gm-configurator__variation-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--gm-color-muted, #5b6470);
}

body.single-product .gm-configurator__variation-sku {
	font-family: var(--gm-font-display);
	font-weight: 700;
	color: var(--gm-color-ink, #14191f);
}

body.single-product .gm-configurator__choices {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

body.single-product .gm-configurator__choice label {
	display: grid;
	grid-template-columns: 22px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--gm-color-divider, #e6e1d4);
	border-radius: 0;
	background: #fff;
	cursor: pointer;
	transition: border-color 120ms ease, background 120ms ease;
	font-size: 14px;
}

body.single-product .gm-configurator__choice label:hover {
	border-color: var(--gm-color-brand, #f39200);
	background: rgba(243, 146, 0, 0.04);
}

body.single-product .gm-configurator__choice input[type=radio],
body.single-product .gm-configurator__choice input[type=checkbox] {
	margin: 0;
	accent-color: var(--gm-color-brand, #f39200);
	transform: scale(1.15);
}

body.single-product .gm-configurator__choice input:checked ~ .gm-configurator__choice-name,
body.single-product .gm-configurator__choice label:has(input:checked) {
	font-weight: 600;
}

body.single-product .gm-configurator__choice label:has(input:checked) {
	border-color: var(--gm-color-brand, #f39200);
	background: rgba(243, 146, 0, 0.06);
}

body.single-product .gm-configurator__choice-name {
	color: var(--gm-color-heading, #14191f);
	line-height: 1.35;
}

body.single-product .gm-configurator__choices--tiles {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}

body.single-product .gm-configurator__choice--tile label {
	grid-template-columns: 22px 1fr;
	grid-template-rows: auto auto;
	align-items: start;
	padding: 12px 14px;
	min-height: 72px;
}

body.single-product .gm-configurator__choice--tile .gm-configurator__choice-price {
	grid-column: 2;
	justify-self: start;
	margin-top: 4px;
}

body.single-product .gm-configurator__choices--compact {
	grid-template-columns: 1fr;
	gap: 4px;
}

body.single-product .gm-configurator__choices--compact.gm-configurator__choices--tiles {
	grid-template-columns: 1fr;
}

body.single-product .gm-configurator__choices--compact .gm-configurator__choice--tile label {
	grid-template-columns: 18px 1fr auto;
	grid-template-rows: auto;
	align-items: center;
	min-height: 0;
	padding: 6px 10px;
	gap: 8px;
}

body.single-product .gm-configurator__choices--compact .gm-configurator__choice--tile .gm-configurator__choice-price {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	margin-top: 0;
}

body.single-product .gm-configurator__choices--compact .gm-configurator__choice-name {
	font-size: 13px;
	line-height: 1.25;
}

body.single-product .gm-configurator__choices--compact .gm-configurator__choice input[type=radio],
body.single-product .gm-configurator__choices--compact .gm-configurator__choice input[type=checkbox] {
	transform: scale(1);
}

body.single-product .gm-configurator__choice-price {
	font-family: var(--gm-font-display);
	font-size: 13px;
	color: var(--gm-color-brand-deep, #b34c1d);
	font-weight: 800;
	white-space: nowrap;
}

body.single-product .gm-configurator__choice-price--included {
	color: var(--gm-color-muted);
	font-weight: 600;
	font-style: normal;
}

body.single-product .gm-configurator__choice--default .gm-configurator__choice-price {
	color: var(--gm-color-muted, #5b6470);
	font-weight: 500;
	font-style: italic;
}

body.single-product .gm-configurator__totals {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--gm-color-divider, #e6e1d4);
	display: grid;
	gap: 4px;
}

body.single-product .gm-configurator__totals-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-size: 14px;
	color: var(--gm-color-muted, #5b6470);
}

body.single-product .gm-configurator__totals-row strong {
	font-family: var(--gm-font-display);
	color: var(--gm-color-heading, #14191f);
	font-weight: 800;
}

body.single-product .gm-configurator__totals-row--grand {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px dashed var(--gm-color-divider, #e6e1d4);
	font-size: 15px;
	color: var(--gm-color-heading, #14191f);
}

body.single-product .gm-configurator__totals-row--grand strong {
	font-size: 18px;
	color: var(--gm-color-brand-deep, #b34c1d);
}

body.single-product .gm-configurator__totals-note {
	margin: 6px 0 0;
	font-size: 11px;
	color: var(--gm-color-muted, #5b6470);
	font-style: italic;
}

@media (max-width: 640px) {
	body.single-product .gm-configurator {
		padding: 16px;
		margin: 14px 0 18px;
	}
	body.single-product .gm-configurator [data-gm-variation] {
		font-size: 14px;
	}
	body.single-product .gm-configurator__choice label {
		grid-template-columns: 20px 1fr;
		grid-template-rows: auto auto;
	}
	body.single-product .gm-configurator__choice-price {
		grid-column: 1 / -1;
		padding-left: 30px;
	}
}

body.single-product .gm-single-product__sales-note {
	margin: 0 0 18px;
	padding: 15px 16px 15px 18px;
	background: var(--gm-color-surface-subtle);
	border: 1px solid var(--gm-color-line);
	border-left: 3px solid var(--gm-color-brand);
	border-radius: var(--gm-radius-md);
	color: var(--gm-color-muted);
	font-size: 14px;
	line-height: 1.55;
}

body.single-product .gm-single-product__project-fit {
	display: grid;
	gap: 10px;
	margin: 0 0 18px;
	padding: 14px 15px;
	background:
		var(--gm-card-multicolor-strip) top left / 100% var(--gm-line-accent-height) no-repeat,
		var(--gm-color-surface-subtle);
	border: 1px solid var(--gm-color-line);
	border-radius: var(--gm-radius-sm);
}

body.single-product .gm-single-product__project-fit strong {
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.single-product .gm-single-product__project-fit ul {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-product .gm-single-product__project-fit li {
	position: relative;
	padding-left: 17px;
	color: var(--gm-color-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

body.single-product .gm-single-product__project-fit li::before {
	content: "";
	position: absolute;
	top: 0.65em;
	left: 0;
	width: 8px;
	height: 3px;
	background: var(--gm-color-brand);
}

body.single-product .gm-single-product__spec-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 18px;
}

body.single-product .gm-single-product__spec-grid div {
	display: grid;
	gap: 5px;
	padding: 12px 13px;
	background:
		var(--gm-card-multicolor-strip) top left / 100% var(--gm-line-accent-height) no-repeat,
		var(--gm-color-surface);
	border: 1px solid var(--gm-color-line);
	border-radius: var(--gm-radius-sm);
}

body.single-product .gm-single-product__spec-grid div:nth-child(8n+1),
body.single-product .gm-single-product__technical-rail div:nth-child(8n+1) {
	--gm-card-accent: var(--gm-bread-orange);
	--gm-card-accent-2: var(--gm-bread-wheat);
	--gm-card-accent-3: var(--gm-bread-crust-red);
}

body.single-product .gm-single-product__spec-grid div:nth-child(8n+2),
body.single-product .gm-single-product__technical-rail div:nth-child(8n+2) {
	--gm-card-accent: var(--gm-bread-toasted-red);
	--gm-card-accent-2: var(--gm-bread-golden);
	--gm-card-accent-3: var(--gm-bread-cacao);
}

body.single-product .gm-single-product__spec-grid div:nth-child(8n+3),
body.single-product .gm-single-product__technical-rail div:nth-child(8n+3) {
	--gm-card-accent: var(--gm-bread-caramel);
	--gm-card-accent-2: var(--gm-bread-brown);
	--gm-card-accent-3: var(--gm-bread-orange);
}

body.single-product .gm-single-product__spec-grid div:nth-child(8n+4),
body.single-product .gm-single-product__technical-rail div:nth-child(8n+4) {
	--gm-card-accent: var(--gm-bread-golden);
	--gm-card-accent-2: var(--gm-bread-wheat);
	--gm-card-accent-3: var(--gm-bread-dark-brown);
}

body.single-product .gm-single-product__spec-grid span {
	color: var(--gm-color-muted);
	font-family: var(--gm-font-display);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.single-product .gm-single-product__spec-grid strong {
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}

body.single-product .gm-single-product__summary .product_meta {
	display: none;
}

body.single-product .gm-single-product__media {
	display: grid;
	grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
	gap: clamp(16px, 2.2vw, 28px);
	align-items: stretch;
	margin-top: 28px;
	padding: clamp(20px, 2.8vw, 34px);
	background:
		var(--gm-multicolor-strip) top left / 100% var(--gm-line-accent-height) no-repeat,
		var(--gm-color-surface);
	border: 1px solid var(--gm-color-line);
	border-radius: var(--gm-radius-lg);
	box-shadow: var(--gm-shadow-card);
}

/* Tras pestañas de ficha técnica; antes de upsells/related */
body.single-product .gm-single-product__details .gm-single-product__media {
	margin-top: clamp(24px, 3.5vw, 40px);
}

body.single-product .gm-single-product__media-copy {
	display: grid;
	align-content: start;
	gap: 10px;
	min-width: 0;
}

body.single-product .gm-single-product__media-copy p {
	margin: 0;
	color: var(--gm-color-brand-deep);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

body.single-product .gm-single-product__media-copy h2 {
	margin: 0;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: var(--gm-title-section);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 1.02;
	text-transform: uppercase;
}

body.single-product .gm-single-product__media-copy span {
	color: var(--gm-color-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
}

body.single-product .gm-single-product__video {
	position: relative;
	min-height: 220px;
	overflow: hidden;
	background: var(--gm-color-ink);
	border: 1px solid var(--gm-color-line-strong);
	border-radius: var(--gm-radius-md);
	box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.06);
}

body.single-product .gm-single-product__video::before {
	content: "";
	display: block;
	aspect-ratio: 16 / 9;
}

body.single-product .gm-single-product__video iframe,
body.single-product .gm-single-product__video > a {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

body.single-product .gm-single-product__video iframe {
	display: block;
	border: 0;
}

body.single-product .gm-single-product__video > a {
	display: grid;
	place-items: center;
	padding: 22px;
	color: #fff;
	font-family: var(--gm-font-display);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

body.single-product .gm-single-product__document {
	display: grid;
	align-content: center;
	gap: 7px;
	padding: 18px 20px 18px 24px;
	background:
		var(--gm-card-multicolor-strip) top left / 100% var(--gm-line-accent-height) no-repeat,
		var(--gm-color-surface-subtle);
	border: 1px solid var(--gm-color-line);
	border-radius: var(--gm-radius-md);
	color: var(--gm-color-heading);
	text-decoration: none;
}

body.single-product .gm-single-product__video + .gm-single-product__document {
	grid-column: 2;
}

body.single-product .gm-single-product__document strong {
	font-family: var(--gm-font-display);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

body.single-product .gm-single-product__document span {
	color: var(--gm-color-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

body.single-product .gm-single-product__document:hover {
	border-color: var(--gm-color-brand);
	color: var(--gm-color-brand-deep);
}

body.single-product .gm-single-product__details {
	margin-top: 34px;
	padding: clamp(26px, 3.2vw, 40px);
}

body.single-product .gm-single-product__details-header {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--gm-color-line);
}

body.single-product .gm-single-product__details-header p {
	margin: 0 0 8px;
	color: var(--gm-color-brand-deep);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

body.single-product .gm-single-product__details-header h2 {
	margin: 0;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: var(--gm-title-page);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.08;
	text-transform: uppercase;
}

body.single-product .gm-single-product__technical-rail {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 24px;
}

body.single-product .gm-single-product__technical-rail div {
	display: grid;
	gap: 5px;
	padding: 15px 16px;
	background:
		var(--gm-card-multicolor-strip) top left / 100% var(--gm-line-accent-height) no-repeat,
		var(--gm-color-surface-subtle);
	border: 1px solid var(--gm-color-line);
	border-radius: var(--gm-radius-sm);
}

body.single-product .gm-single-product__technical-rail strong {
	color: var(--gm-color-brand-deep);
	font-family: var(--gm-font-display);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.single-product .gm-single-product__technical-rail span {
	color: var(--gm-color-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

body.single-product .gm-product-seo-panel {
	display: grid;
	gap: clamp(18px, 2.6vw, 28px);
	margin-top: clamp(24px, 3.5vw, 42px);
	padding: clamp(22px, 3vw, 34px);
	background: var(--gm-color-surface-subtle, #faf8f4);
	border: 2px solid var(--gm-color-ink);
	border-radius: 0;
	box-shadow: none;
}

body.single-product .gm-product-seo-panel__intro {
	display: grid;
	gap: 10px;
	max-width: 940px;
}

body.single-product .gm-product-seo-panel__eyebrow {
	margin: 0;
	color: var(--gm-color-brand-deep);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.single-product .gm-product-seo-panel__intro h2 {
	margin: 0;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: var(--gm-title-page);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 0.98;
	text-transform: uppercase;
	text-wrap: balance;
}

body.single-product .gm-product-seo-panel__intro > p:not(.gm-product-seo-panel__eyebrow) {
	max-width: 760px;
	margin: 0;
	color: var(--gm-color-muted);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.65;
}

body.single-product .gm-product-seo-panel__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

body.single-product .gm-product-seo-panel__card {
	display: grid;
	align-content: start;
	gap: 14px;
	min-width: 0;
	padding: 18px;
	background: #ffffff;
	border: 1px solid rgba(45, 31, 20, 0.08);
	border-radius: var(--gm-radius-sm);
	box-shadow: 0 16px 36px rgba(58, 38, 22, 0.08);
}

body.single-product .gm-product-seo-panel__card h3,
body.single-product .gm-product-seo-panel__questions h3 {
	margin: 0;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.single-product .gm-product-seo-panel__card ul,
body.single-product .gm-product-seo-panel__questions ul {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-product .gm-product-seo-panel__card li,
body.single-product .gm-product-seo-panel__questions li {
	position: relative;
	padding-left: 18px;
	color: var(--gm-color-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

body.single-product .gm-product-seo-panel__card li::before,
body.single-product .gm-product-seo-panel__questions li::before {
	content: "";
	position: absolute;
	top: 0.7em;
	left: 0;
	width: 8px;
	height: 3px;
	background: var(--gm-color-brand);
}

body.single-product .gm-product-seo-panel__card dl {
	display: grid;
	gap: 10px;
	margin: 0;
}

body.single-product .gm-product-seo-panel__card dl div {
	display: grid;
	gap: 3px;
}

body.single-product .gm-product-seo-panel__card dt {
	color: var(--gm-color-brand-deep);
	font-family: var(--gm-font-display);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.single-product .gm-product-seo-panel__card dd {
	margin: 0;
	color: var(--gm-color-heading);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
}

body.single-product .gm-product-seo-panel__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.single-product .gm-product-seo-panel__links a,
body.single-product .gm-product-seo-panel__cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 13px;
	border-radius: var(--gm-radius-xs);
	background: color-mix(in srgb, var(--gm-color-brand) 12%, #ffffff);
	color: var(--gm-color-brand-deep);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

body.single-product .gm-product-seo-panel__links a:hover,
body.single-product .gm-product-seo-panel__cta a:hover {
	background: var(--gm-color-brand);
	color: var(--gm-color-brand-contrast);
}

body.single-product .gm-product-seo-panel__links span {
	width: 100%;
	color: var(--gm-color-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

body.single-product .gm-product-seo-panel__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
	gap: 14px;
}

body.single-product .gm-product-seo-panel__questions,
body.single-product .gm-product-seo-panel__cta {
	display: grid;
	align-content: start;
	gap: 14px;
	padding: 18px;
	border-radius: var(--gm-radius-sm);
}

body.single-product .gm-product-seo-panel__questions {
	background: rgba(255, 255, 255, 0.68);
	border: 1px dashed color-mix(in srgb, var(--gm-color-brand) 35%, transparent);
}

body.single-product .gm-product-seo-panel__cta {
	background: var(--gm-color-heading);
	color: #ffffff;
}

body.single-product .gm-product-seo-panel__cta p {
	margin: 0;
	color: #ffffff;
	font-family: var(--gm-font-display);
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.05;
	text-transform: uppercase;
}

body.single-product .gm-product-seo-panel__cta span {
	color: rgba(255, 255, 255, 0.76);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.55;
}

body.single-product .gm-product-seo-panel__cta a {
	justify-self: start;
	background: var(--gm-color-brand);
	color: var(--gm-color-brand-contrast);
}

body.single-product .gm-product-seo-panel__quote-basket {
	display: grid;
	justify-items: start;
}

body.single-product .gm-product-seo-panel__quote-basket .gm-quote-add {
	width: 100%;
	max-width: 320px;
}

body.single-product .gm-product-seo-panel__quote-basket .gm-quote-add__label {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}

body.single-product .gm-single-product__details-header--compact {
	margin-bottom: clamp(12px, 1.6vw, 18px);
}

body.single-product .gm-single-product__details-header--compact h2 {
	font-size: clamp(20px, 2.4vw, 26px);
}

body.gm-pdp-single-tab .gm-single-product__details .woocommerce-tabs .wc-tabs {
	display: none;
}

body.gm-pdp-single-tab .gm-single-product__details .woocommerce-tabs .woocommerce-Tabs-panel {
	border-top: 2px solid var(--gm-color-ink);
}

body.single-product .gm-single-product__details .woocommerce-tabs {
	margin: 0;
}

body.single-product .gm-product-editorial-model,
body.single-product .gm-production-notes,
body.single-product .is-style-grosmac-product-editorial-model {
	display: grid;
	gap: 12px;
	margin-bottom: 24px;
	padding: clamp(18px, 2.2vw, 26px);
	background:
		var(--gm-multicolor-strip) top left / 100% var(--gm-line-accent-height) no-repeat,
		var(--gm-color-surface-subtle);
	border: 1px solid var(--gm-color-line);
	border-radius: var(--gm-radius-md);
}

body.single-product .gm-product-editorial-model h2,
body.single-product .gm-product-editorial-model h3,
body.single-product .gm-product-editorial-model p,
body.single-product .gm-production-notes h2,
body.single-product .gm-production-notes h3,
body.single-product .gm-production-notes p,
body.single-product .is-style-grosmac-product-editorial-model h2,
body.single-product .is-style-grosmac-product-editorial-model h3,
body.single-product .is-style-grosmac-product-editorial-model p {
	margin: 0;
}

body.single-product .gm-product-editorial-model h2,
body.single-product .gm-production-notes h2,
body.single-product .is-style-grosmac-product-editorial-model h2 {
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.1;
	text-transform: uppercase;
}

body.single-product .gm-product-editorial-model h3,
body.single-product .gm-production-notes h3,
body.single-product .is-style-grosmac-product-editorial-model h3 {
	color: var(--gm-color-brand-deep);
	font-family: var(--gm-font-display);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.single-product .gm-product-editorial-model p,
body.single-product .gm-production-notes p,
body.single-product .is-style-grosmac-product-editorial-model p {
	color: var(--gm-color-muted);
	font-size: 14px;
	line-height: 1.6;
}

/* Cola de descripción (p. ej. HIGH HYDRATION NOTES): tras pestañas, antes de PDF/vídeo */
body.single-product .gm-single-product__details .gm-single-product__description-tail {
	margin-top: clamp(18px, 2.5vw, 26px);
	padding: clamp(22px, 2.5vw, 28px);
	background: var(--gm-neutral-industrial-white);
	border: 2px solid var(--gm-color-ink);
	box-sizing: border-box;
}

body.single-product .gm-single-product__details .gm-single-product__description-tail .gm-product-editorial-model:last-child,
body.single-product .gm-single-product__details .gm-single-product__description-tail .gm-production-notes:last-child {
	margin-bottom: 0;
}

body.single-product .gm-single-product__details .wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 0;
	margin: 0 0 0;
	list-style: none;
	border-bottom: 2px solid var(--gm-color-ink);
}

body.single-product .gm-single-product__details .wc-tabs li {
	margin: 0;
}

body.single-product .gm-single-product__details .wc-tabs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 0;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background var(--gm-transition-fast), color var(--gm-transition-fast), border-color var(--gm-transition-fast);
}

body.single-product .gm-single-product__details .wc-tabs a:hover {
	background: var(--gm-color-surface-subtle);
	border-color: var(--gm-color-line);
}

body.single-product .gm-single-product__details .wc-tabs .active a {
	position: relative;
	z-index: 1;
	margin-bottom: -2px;
	padding-bottom: 2px;
	background: var(--gm-color-surface);
	border: 2px solid var(--gm-color-ink);
	border-bottom: 2px solid var(--gm-color-surface);
	color: var(--gm-color-brand-deep);
	box-shadow: none;
}

body.single-product .gm-single-product__details .woocommerce-Tabs-panel {
	margin-top: 0;
	padding: clamp(22px, 2.5vw, 28px);
	background: var(--gm-neutral-industrial-white);
	border: 2px solid var(--gm-color-ink);
	border-top: none;
	scroll-margin-top: calc(var(--gm-product-summary-sticky-top) + 60px);
}

/* =====================================================================
 * Sprint 3 — Tabs/Storytelling
 * S1 · Sticky tabs on desktop
 * S2 · Video tab facade (lazy iframe)
 * S3 · Collapsible <details> styling for editorial tail
 * ===================================================================== */

@media (min-width: 880px) {
	body.single-product .gm-single-product__details .wc-tabs {
		position: sticky;
		top: var(--gm-product-summary-sticky-top);
		z-index: 5;
		background: var(--gm-color-canvas);
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
		padding-top: 4px;
		margin-top: -4px;
	}
}

/* Video tab facade */
body.single-product .gm-product-video-tab {
	display: grid;
	gap: clamp(14px, 1.6vw, 20px);
}

body.single-product .gm-product-video-tab h2 {
	margin: 0;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.15;
	text-transform: uppercase;
}

body.single-product .gm-product-video-tab__intro {
	margin: 0;
	max-width: 60ch;
	color: var(--gm-color-muted);
	font-size: 14px;
	line-height: 1.6;
}

body.single-product .gm-product-video-facade {
	position: relative;
	margin: 0;
	padding: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--gm-color-ink, #221f20);
	border: 1px solid var(--gm-color-line-strong);
	border-radius: var(--gm-radius-md);
	box-shadow: 4px 4px 0 0 var(--gm-color-ink);
}

body.single-product .gm-product-video-facade__button {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	display: block;
	color: #fff;
	transition: filter var(--gm-transition-fast);
}

body.single-product .gm-product-video-facade__button:hover,
body.single-product .gm-product-video-facade__button:focus-visible {
	filter: brightness(1.05);
	outline: none;
}

body.single-product .gm-product-video-facade__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

body.single-product .gm-product-video-facade__poster--empty {
	background:
		linear-gradient(180deg, var(--gm-neutral-graphite, #4a484a) 0%, var(--gm-color-ink, #221f20) 100%);
}

body.single-product .gm-product-video-facade__button:hover .gm-product-video-facade__poster,
body.single-product .gm-product-video-facade__button:focus-visible .gm-product-video-facade__poster {
	transform: none;
}

body.single-product .gm-product-video-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	transition: transform 0.18s ease;
}

body.single-product .gm-product-video-facade__button:hover .gm-product-video-facade__play {
	transform: translate(-50%, -50%);
}

body.single-product .gm-product-video-facade__cta {
	position: absolute;
	bottom: 14px;
	left: 14px;
	padding: 6px 10px;
	background: rgba(15, 23, 42, 0.85);
	color: #fff;
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: 0;
	pointer-events: none;
}

body.single-product .gm-product-video-facade__caption {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 4px 8px;
	background: rgba(15, 23, 42, 0.6);
	color: #f3f4f6;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	border-radius: 0;
	pointer-events: none;
}

body.single-product .gm-product-video-facade__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

body.single-product .gm-product-video-facade.is-activated {
	background: #000;
}

@media (prefers-reduced-motion: reduce) {
	body.single-product .gm-product-video-facade__poster,
	body.single-product .gm-product-video-facade__play {
		transition: none;
	}
	body.single-product .gm-product-video-facade__button:hover .gm-product-video-facade__poster,
	body.single-product .gm-product-video-facade__button:focus-visible .gm-product-video-facade__poster,
	body.single-product .gm-product-video-facade__button:hover .gm-product-video-facade__play {
		transform: none;
	}
}

/* S3 · Collapsible <details> in editorial tail and tabs */
body.single-product .gm-single-product__details .wp-block-details,
body.single-product .gm-single-product__description-tail .wp-block-details,
body.single-product .gm-single-product__description-tail details,
body.single-product .gm-single-product__details details:not(.gm-no-style) {
	margin: 12px 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--gm-color-line);
	border-radius: var(--gm-radius-sm, 0);
	overflow: hidden;
	transition: border-color var(--gm-transition-fast);
}

body.single-product .gm-single-product__details .wp-block-details[open],
body.single-product .gm-single-product__description-tail .wp-block-details[open],
body.single-product .gm-single-product__description-tail details[open],
body.single-product .gm-single-product__details details[open]:not(.gm-no-style) {
	border-color: var(--gm-color-ink);
	box-shadow: 4px 4px 0 0 var(--gm-color-ink);
}

body.single-product .gm-single-product__details .wp-block-details > summary,
body.single-product .gm-single-product__description-tail .wp-block-details > summary,
body.single-product .gm-single-product__description-tail details > summary,
body.single-product .gm-single-product__details details:not(.gm-no-style) > summary {
	display: list-item;
	padding: 14px 18px;
	cursor: pointer;
	font-family: var(--gm-font-display);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.35;
	color: var(--gm-color-heading);
	text-transform: none;
	transition: background var(--gm-transition-fast);
}

body.single-product .gm-single-product__details .wp-block-details > summary:hover,
body.single-product .gm-single-product__description-tail .wp-block-details > summary:hover,
body.single-product .gm-single-product__description-tail details > summary:hover {
	background: var(--gm-color-surface-subtle);
}

body.single-product .gm-single-product__details .wp-block-details[open] > summary,
body.single-product .gm-single-product__description-tail .wp-block-details[open] > summary,
body.single-product .gm-single-product__description-tail details[open] > summary,
body.single-product .gm-single-product__details details[open]:not(.gm-no-style) > summary {
	background: var(--gm-color-surface-subtle);
	border-bottom: 1px solid var(--gm-color-line);
}

body.single-product .gm-single-product__details .wp-block-details > *:not(summary),
body.single-product .gm-single-product__description-tail .wp-block-details > *:not(summary),
body.single-product .gm-single-product__description-tail details > *:not(summary),
body.single-product .gm-single-product__details details:not(.gm-no-style) > *:not(summary) {
	padding: 14px 18px;
	margin: 0;
}

body.single-product .gm-single-product__details .wp-block-details > *:not(summary) + *:not(summary),
body.single-product .gm-single-product__description-tail .wp-block-details > *:not(summary) + *:not(summary),
body.single-product .gm-single-product__description-tail details > *:not(summary) + *:not(summary),
body.single-product .gm-single-product__details details:not(.gm-no-style) > *:not(summary) + *:not(summary) {
	padding-top: 0;
}

/*
 * Related / upsells viven dentro de .gm-single-product__details (tabs + bloque).
 * En PDP no hay body.grosmac-shop, así que hay que resetear aquí los estilos
 * globales de grids de producto con especificidad + !important.
 */
body.single-product .gm-single-product__details .related.products,
body.single-product .gm-single-product__details .upsells.products {
	clear: both;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin-top: clamp(36px, 5vw, 52px);
	padding-top: clamp(28px, 3.5vw, 40px);
	border-top: 2px solid var(--gm-color-ink);
	overflow-x: clip;
}

body.single-product .gm-single-product__details .related.products > h2,
body.single-product .gm-single-product__details .upsells.products > h2 {
	margin: 0 0 clamp(18px, 2vw, 24px);
	padding-bottom: 12px;
	border-bottom: 3px solid var(--gm-color-brand);
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.1;
	text-transform: uppercase;
}

body.single-product .gm-single-product__details .related.products ul.products,
body.single-product .gm-single-product__details .upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: clamp(12px, 1.6vw, 18px);
	align-items: start;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	box-sizing: border-box;
}

body.single-product .gm-single-product__details .related.products ul.products::before,
body.single-product .gm-single-product__details .related.products ul.products::after,
body.single-product .gm-single-product__details .upsells.products ul.products::before,
body.single-product .gm-single-product__details .upsells.products ul.products::after {
	content: none !important;
	display: none !important;
}

body.single-product .gm-single-product__details .related.products li.product,
body.single-product .gm-single-product__details .upsells.products li.product {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	flex: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}

@media (min-width: 900px) {
	body.single-product .gm-single-product__details .related.products ul.products,
	body.single-product .gm-single-product__details .upsells.products ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 899px) {
	body.single-product .gm-single-product__details .related.products ul.products,
	body.single-product .gm-single-product__details .upsells.products ul.products {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
	}
}

.gm-product-quote {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(18px, 3vw, 34px);
	align-items: center;
	max-width: var(--gm-product-page-width);
	margin: 0 auto 40px;
	padding: clamp(24px, 3vw, 34px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-left: 6px solid var(--gm-color-brand);
	background:
		var(--gm-multicolor-strip) top left / 100% var(--gm-line-accent-height) no-repeat,
		var(--gm-color-ink);
	border-radius: var(--gm-radius-lg);
	color: #ffffff;
	box-shadow: var(--gm-shadow-card-hover);
}

.gm-product-quote__content {
	min-width: 0;
}

.gm-product-quote__eyebrow {
	margin: 0 0 8px;
	color: var(--gm-color-brand);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.gm-product-quote h2 {
	margin: 0 0 8px;
	color: #ffffff;
	font-family: var(--gm-font-display);
	font-size: var(--gm-title-section);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1;
	text-transform: uppercase;
}

.gm-product-quote p {
	max-width: 720px;
	margin: 0;
	color: rgba(255, 255, 255, 0.76);
	line-height: 1.65;
}

.gm-product-quote__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
}

.gm-product-quote__button,
.gm-product-quote__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--gm-radius-sm);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.gm-product-quote__button {
	background: var(--gm-color-brand);
	color: #ffffff;
}

.gm-product-quote__button:hover {
	background: #ffffff;
	color: var(--gm-color-ink);
}

.gm-product-quote__link {
	border: 1px solid rgba(255, 255, 255, 0.24);
	color: #ffffff;
}

.gm-product-quote__link:hover {
	border-color: rgba(255, 255, 255, 0.62);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

@media (min-width: 1180px) {
	.gm-product-quote {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.gm-product-quote__actions {
		justify-content: flex-end;
	}
}

@media (max-width: 1100px) {
	body.single-product {
		--gm-product-page-width: var(--gm-shell);
	}

	body.single-product .gm-product-datasheet {
		padding-top: 20px;
	}

	body.single-product .gm-single-product {
		max-width: var(--gm-product-page-width);
	}

	.gm-product-quote {
		grid-template-columns: 1fr;
		max-width: var(--gm-product-page-width);
	}

	body.single-product .gm-single-product__layout {
		grid-template-columns: 1fr;
	}

	body.single-product .gm-single-product__media {
		grid-template-columns: 1fr;
	}

	body.single-product .gm-single-product__video + .gm-single-product__document {
		grid-column: auto;
	}

	body.single-product .gm-single-product__technical-rail {
		grid-template-columns: 1fr;
	}

	body.single-product .gm-product-seo-panel__grid,
	body.single-product .gm-product-seo-panel__footer {
		grid-template-columns: 1fr;
	}

	body.single-product .gm-single-product__spec-grid {
		grid-template-columns: 1fr;
	}

	body.single-product .gm-product-banner {
		grid-template-columns: 1fr;
	}

	body.single-product .gm-product-banner__link {
		justify-self: start;
		white-space: normal;
	}

	body.single-product .gm-single-product__header {
		grid-template-columns: 1fr;
	}

	body.single-product .gm-single-product__eyebrow--aside {
		align-self: stretch;
		text-align: center;
	}

	body.single-product .gm-single-product__actions {
		grid-template-columns: 1fr;
	}

	/* Compact spec-strip on tablet/mobile (no more 3 stacked boxed) */
	body.single-product .gm-single-product__spec-strip {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px;
		align-items: stretch;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell {
		flex: 0 1 auto;
		min-width: 0;
		min-height: var(--gm-meta-chip-min-height);
		padding: var(--gm-meta-chip-padding-y) var(--gm-meta-chip-padding-x);
		background:
			var(--gm-card-multicolor-strip) top left / 100% var(--gm-chrome-strip-height) no-repeat,
			var(--gm-color-surface);
		border: 1px solid var(--gm-color-line);
		font-size: calc(var(--gm-meta-chip-font-size) + 1px);
		letter-spacing: var(--gm-label-letter-spacing);
		line-height: var(--gm-meta-chip-line-height);
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell--sku {
		background:
			var(--gm-card-multicolor-strip) top left / 100% var(--gm-chrome-strip-height) no-repeat,
			var(--gm-color-ink);
		color: #fff;
		border-color: var(--gm-color-ink);
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell--sku .gm-single-product__sku-plain {
		color: #fff;
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell a {
		padding: 0;
	}
}

@media (max-width: 600px) {
	body.single-product {
		--gm-product-page-width: var(--gm-page-width-compact);
	}

	body.single-product .product_title.entry-title:not(.gm-product-title--auto-fit) {
		font-size: var(--gm-title-section);
	}

	body.single-product .product_title.entry-title.gm-product-title--auto-fit {
		font-size: var(--gm-title-subsection);
		line-height: 0.95;
	}

	body.single-product .gm-single-product__gallery,
	body.single-product .gm-single-product__summary,
	body.single-product .gm-single-product__media,
	body.single-product .gm-single-product__details,
	body.single-product .gm-product-seo-panel,
	.gm-product-quote {
		padding: 18px;
	}

	body.single-product .gm-single-product__gallery .flex-control-thumbs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gm-product-quote__actions {
		display: grid;
	}

	body.single-product .gm-single-product__actions {
		grid-template-columns: 1fr;
	}

	body.single-product .gm-single-product__button,
	body.single-product .gm-single-product__link,
	body.single-product .gm-product-seo-panel__links a,
	body.single-product .gm-product-seo-panel__cta a,
	.gm-product-quote__button,
	.gm-product-quote__link {
		width: 100%;
		min-height: 52px;
	}

	/* ----- Mobile compact: header, watermark, spec-strip, gallery label ----- */

	body.single-product .gm-single-product__header {
		padding: 0 0 6px;
		margin-bottom: 8px;
		gap: 10px;
	}

	body.single-product .gm-single-product__spec-strip {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		align-items: stretch;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell {
		flex: 0 1 auto;
		min-width: 0;
		min-height: var(--gm-meta-chip-min-height);
		padding: var(--gm-meta-chip-padding-y) var(--gm-meta-chip-padding-x);
		background:
			var(--gm-card-multicolor-strip) top left / 100% var(--gm-chrome-strip-height) no-repeat,
			var(--gm-color-surface);
		border: 1px solid var(--gm-color-line);
		font-size: var(--gm-meta-chip-font-size);
		letter-spacing: var(--gm-label-letter-spacing);
		line-height: var(--gm-meta-chip-line-height);
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell--sku {
		background:
			var(--gm-card-multicolor-strip) top left / 100% var(--gm-chrome-strip-height) no-repeat,
			var(--gm-color-ink);
		color: #fff;
		border-color: var(--gm-color-ink);
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell--sku .gm-single-product__sku-plain {
		color: #fff;
	}

	body.single-product .gm-single-product__spec-strip .gm-single-product__spec-strip-cell a {
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product .gm-single-product__button--lead {
		transition: none;
	}

	body.single-product .gm-single-product__button--lead:hover {
		transform: none;
		box-shadow: 4px 4px 0 0 var(--gm-color-ink);
	}
}

/* =====================================================================
 * Sprint 2 — Conversion B2B
 * - CTA microcopy under quote button (C4)
 * - Trust strip (B2)
 * - Inline quote dialog (B1)
 * Sticky summary in desktop already exists at line 626 (B3).
 * ===================================================================== */

body.single-product .gm-single-product__cta-note {
	grid-column: 1 / -1;
	margin: -2px 0 4px;
	padding: 0 4px;
	color: var(--gm-color-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-align: center;
}

/* Mobile sticky quote bar (Fase 2) — sits above floating contact FABs */
.gm-pdp-mobile-cta {
	display: none;
}

@media (max-width: 760px) {
	body.gm-pdp-mobile-quote-bar.single-product {
		padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
	}

	body.gm-pdp-mobile-quote-bar.single-product .gm-pdp-mobile-cta {
		display: grid;
		position: fixed;
		right: 0;
		bottom: calc(52px + env(safe-area-inset-bottom, 0px));
		left: 0;
		z-index: 45;
		gap: 2px;
		margin: 0;
		padding: 8px 10px 6px;
		background: color-mix(in srgb, var(--gm-color-paper, #fff) 94%, transparent);
		border-top: 2px solid var(--gm-color-ink, #221f20);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
		backdrop-filter: blur(6px);
	}

	body.gm-pdp-mobile-quote-bar.single-product .gm-pdp-mobile-cta__button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 44px;
		margin: 0;
		padding: 10px 14px;
		font-size: 14px;
		text-align: center;
	}

	body.gm-pdp-mobile-quote-bar.single-product .gm-pdp-mobile-cta__note {
		margin: 0;
		padding: 0 2px;
		color: var(--gm-color-muted);
		font-size: 10px;
		font-weight: 600;
		line-height: 1.25;
		text-align: center;
	}
}

/* B2 · Trust strip */
body.single-product .gm-single-product__trust-strip {
	margin: clamp(18px, 2vw, 28px) 0 0;
	padding: clamp(16px, 2vw, 24px) clamp(18px, 2.2vw, 28px);
	background: var(--gm-color-surface);
	border: 1px solid var(--gm-color-line);
	border-radius: var(--gm-radius-lg);
	box-shadow: var(--gm-shadow-card);
	background:
		var(--gm-multicolor-strip) top left / 100% var(--gm-line-accent-height) no-repeat,
		var(--gm-color-surface);
}

body.single-product .gm-single-product__trust-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: clamp(10px, 1.6vw, 18px);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-product .gm-single-product__trust-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 8px 12px;
	border-left: 4px solid var(--gm-color-brand);
}

body.single-product .gm-single-product__trust-value {
	font-family: var(--gm-font-display);
	font-size: var(--gm-title-section);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--gm-color-ink);
}

body.single-product .gm-single-product__trust-label {
	margin-top: 6px;
	color: var(--gm-color-heading);
	font-family: var(--gm-font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* B1 · Inline quote dialog */
.gm-quote-dialog[open] {
	max-width: min(640px, 96vw);
	width: min(640px, 96vw);
	padding: 0;
	border: none;
	border-radius: var(--gm-radius-lg, 0);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
	color: var(--gm-color-ink);
	background: var(--gm-color-surface, #fff);
	overflow: hidden;
	font-family: var(--gm-font-body);
	max-height: 92vh;
}

.gm-quote-dialog::backdrop {
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.gm-quote-dialog__form {
	display: flex;
	flex-direction: column;
	max-height: 92vh;
}

.gm-quote-dialog__header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: clamp(18px, 2.4vw, 24px) clamp(18px, 2.4vw, 24px) 12px;
	border-bottom: 1px solid var(--gm-color-line, #e5e7eb);
	background:
		var(--gm-multicolor-strip) top left / 100% var(--gm-line-accent-height, 4px) no-repeat,
		#fff;
}

.gm-quote-dialog__eyebrow {
	margin: 0 0 4px;
	color: var(--gm-color-brand-deep, #b46500);
	font-family: var(--gm-font-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.gm-quote-dialog__title {
	margin: 0;
	font-family: var(--gm-font-display);
	font-size: clamp(20px, 2.6vw, 24px);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--gm-color-heading);
}

.gm-quote-dialog__sku {
	margin: 6px 0 0;
	color: var(--gm-color-muted);
	font-size: 12px;
}

.gm-quote-dialog__sku code {
	padding: 1px 6px;
	background: var(--gm-color-line, #f3f4f6);
	border-radius: 0;
	font-family: var(--gm-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	font-size: 11px;
}

.gm-quote-dialog__close {
	margin-left: auto;
	width: 36px;
	height: 36px;
	background: transparent;
	border: 1px solid var(--gm-color-line);
	border-radius: 0;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--gm-color-ink);
	transition: background var(--gm-transition-fast, 0.18s);
}

.gm-quote-dialog__close:hover,
.gm-quote-dialog__close:focus-visible {
	background: var(--gm-color-line);
	outline: none;
}

.gm-quote-dialog__body {
	padding: 18px clamp(18px, 2.4vw, 24px);
	overflow-y: auto;
	flex: 1 1 auto;
}

.gm-quote-dialog__intro {
	margin: 0 0 14px;
	color: var(--gm-color-muted);
	font-size: 13px;
	line-height: 1.55;
}

.gm-quote-dialog__form .grosmac-lead-form__persona {
	margin-bottom: 16px;
}

.gm-quote-dialog__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 14px;
}

.gm-quote-dialog__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--gm-color-ink);
}

.gm-quote-dialog__field--full {
	grid-column: 1 / -1;
}

.gm-quote-dialog__field span {
	letter-spacing: 0.02em;
}

.gm-quote-dialog__field em {
	color: var(--gm-color-brand-deep, #b46500);
	font-style: normal;
	margin-left: 2px;
}

.gm-quote-dialog__field input,
.gm-quote-dialog__field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--gm-color-line, #d1d5db);
	border-radius: 0;
	background: #fff;
	color: var(--gm-color-ink);
	font: inherit;
	font-weight: 500;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.gm-quote-dialog__field input:focus,
.gm-quote-dialog__field textarea:focus {
	border-color: var(--gm-color-brand, #f39200);
	box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.18);
	outline: none;
}

.gm-quote-dialog__field textarea {
	min-height: 90px;
	resize: vertical;
}

.gm-quote-dialog__legal {
	margin: 14px 0 0;
	color: var(--gm-color-muted);
	font-size: 11px;
	line-height: 1.45;
}

.gm-quote-dialog__trap {
	position: absolute !important;
	left: -99999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.gm-quote-dialog__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px clamp(18px, 2.4vw, 24px);
	border-top: 1px solid var(--gm-color-line, #e5e7eb);
	background: rgba(15, 23, 42, 0.02);
}

.gm-quote-dialog__cancel,
.gm-quote-dialog__submit {
	font-family: var(--gm-font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 12px 18px;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.gm-quote-dialog__cancel {
	background: transparent;
	color: var(--gm-color-muted);
	border: 1px solid var(--gm-color-line);
}

.gm-quote-dialog__cancel:hover,
.gm-quote-dialog__cancel:focus-visible {
	color: var(--gm-color-ink);
	border-color: var(--gm-color-ink);
	outline: none;
}

.gm-quote-dialog__submit {
	background: var(--gm-color-brand, #f39200);
	color: var(--gm-color-ink);
	border: 1px solid var(--gm-color-ink);
	box-shadow: 4px 4px 0 0 var(--gm-color-ink);
}

.gm-quote-dialog__submit:hover,
.gm-quote-dialog__submit:focus-visible {
	background: var(--gm-color-brand-deep, #b46500);
	color: #fff;
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 0 var(--gm-color-ink);
	outline: none;
}

.gm-quote-dialog__submit[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.gm-quote-dialog__feedback {
	margin: 0;
	padding: 0 clamp(18px, 2.4vw, 24px);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	min-height: 0;
	outline: none;
	transition: padding 0.18s;
}

.gm-quote-dialog__feedback:not(:empty) {
	padding: 14px clamp(18px, 2.4vw, 24px) 14px calc(clamp(18px, 2.4vw, 24px) + 28px);
	border-left: 4px solid currentColor;
	position: relative;
}

.gm-quote-dialog__feedback:not(:empty)::before {
	content: "";
	position: absolute;
	left: clamp(18px, 2.4vw, 24px);
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.gm-quote-dialog__feedback[data-tone="success"] {
	color: #15803d;
	background: rgba(34, 197, 94, 0.12);
}

.gm-quote-dialog__feedback[data-tone="success"]::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

.gm-quote-dialog__feedback[data-tone="error"] {
	color: #b91c1c;
	background: rgba(239, 68, 68, 0.12);
}

.gm-quote-dialog__feedback[data-tone="error"]::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
}

.gm-quote-dialog__response-note {
	margin: 0;
	padding: 6px clamp(18px, 2.4vw, 24px) 14px;
	color: var(--gm-color-muted);
	font-size: 11px;
	font-weight: 600;
	text-align: right;
}

.gm-quote-dialog__form--sent .gm-quote-dialog__body,
.gm-quote-dialog__form--sent .gm-quote-dialog__legal {
	display: none;
}

@media (max-width: 720px) {
	.gm-quote-dialog__grid {
		grid-template-columns: 1fr;
	}
	.gm-quote-dialog__footer {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.gm-quote-dialog__cancel,
	.gm-quote-dialog__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gm-quote-dialog__submit:hover,
	.gm-quote-dialog__submit:focus-visible {
		transform: none;
		box-shadow: 4px 4px 0 0 var(--gm-color-ink);
	}
}

/* ===== Grosmac packing list (PDP) ===== */
.gm-product-packing { margin: 32px 0; padding: 24px; background: var(--gm-color-surface-subtle, #faf8f4); border: 1px solid var(--gm-color-line, #d8d3ca); border-radius: 0; }
.gm-product-packing__head { margin-bottom: 18px; }
.gm-product-packing__eyebrow { margin: 0 0 4px; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gm-color-brand, #f39200); }
.gm-product-packing__title { margin: 0 0 6px; font-family: var(--gm-font-display, Archivo, sans-serif); font-size: clamp(1.4rem, 2vw, 1.8rem); }
.gm-product-packing__sub { margin: 0; color: var(--gm-color-muted, #565352); }
.gm-product-packing__table-wrap { overflow-x: auto; }
.gm-product-packing__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.gm-product-packing__table th, .gm-product-packing__table td { padding: 10px 12px; border-bottom: 1px solid var(--gm-color-line, #d8d3ca); text-align: left; }
.gm-product-packing__table thead th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gm-color-muted, #565352); background: #fff; }
.gm-product-packing__table tfoot th { background: var(--gm-color-ink, #221f20); color: #fff; font-weight: 700; }
.gm-product-packing__table tfoot th:first-child { letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; }
@media (max-width: 600px) { .gm-product-packing { padding: 16px; } .gm-product-packing__table { font-size: 0.85rem; } .gm-product-packing__table th, .gm-product-packing__table td { padding: 8px; } }

/* ===== Grosmac PDP gallery (custom, no flexslider) ===== */
.gm-pdp-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
	opacity: 1;
}
.gm-pdp-gallery__main {
	position: relative;
	width: 100%;
	background: #fff;
	border: 1px solid var(--gm-color-line, #e3e3e9);
	border-radius: var(--gm-radius-md, 0);
	overflow: hidden;
}
.gm-pdp-gallery__main-btn {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 0;
	cursor: zoom-in;
	transition: opacity 180ms ease;
}
.gm-pdp-gallery__main-btn:focus-visible {
	outline: 2px solid var(--gm-color-brand, #f39200);
	outline-offset: -2px;
}
.gm-pdp-gallery__main.is-swapping .gm-pdp-gallery__main-btn { opacity: 0.55; }
.gm-pdp-gallery__main img,
.gm-pdp-gallery__main .wp-post-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	margin: 0;
}
.gm-pdp-gallery__zoom-hint {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(34, 31, 32, 0.78);
	border-radius: 0;
	pointer-events: none;
	box-shadow: none;
}
.gm-pdp-gallery__main-btn:hover .gm-pdp-gallery__zoom-hint {
	background: var(--gm-color-brand, #f39200);
}
.gm-pdp-gallery__thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.gm-pdp-gallery__thumbs::-webkit-scrollbar { height: 6px; }
.gm-pdp-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--gm-color-line, #e3e3e9); border-radius: 0; }
.gm-pdp-gallery__thumb {
	flex: 0 0 auto;
	margin: 0;
}
.gm-pdp-gallery__thumb-btn {
	position: relative;
	display: block;
	width: 72px;
	height: 72px;
	padding: 0;
	margin: 0;
	background: #fff;
	border: 1px solid var(--gm-color-line, #e3e3e9);
	border-radius: var(--gm-radius-sm, 0);
	cursor: pointer;
	overflow: hidden;
	transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.gm-pdp-gallery__thumb-btn:hover,
.gm-pdp-gallery__thumb-btn:focus-visible {
	border-color: var(--gm-color-brand, #f39200);
	outline: none;
	box-shadow: 0 0 0 2px rgba(243, 146, 0, 0.18);
}
.gm-pdp-gallery__thumb.is-active .gm-pdp-gallery__thumb-btn {
	border-color: var(--gm-color-brand, #f39200);
	box-shadow: 0 0 0 2px rgba(243, 146, 0, 0.28);
}
.gm-pdp-gallery__thumb-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.gm-pdp-gallery__thumb--video .gm-pdp-gallery__thumb-play {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at center, rgba(0, 0, 0, 0.55) 0 26%, transparent 27%) center/100% 100% no-repeat,
		linear-gradient(transparent, rgba(0, 0, 0, 0.18));
}
.gm-pdp-gallery__thumb--video .gm-pdp-gallery__thumb-play::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 12px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-40%, -50%);
}
.gm-pdp-gallery--single .gm-pdp-gallery__thumbs { display: none; }

@media (min-width: 900px) {
	.gm-pdp-gallery__thumb-btn {
		width: 84px;
		height: 84px;
	}
}

/* Productivity highlight (benchmark WP Kemper / Fritsch capacity in headline) */
body.single-product .gm-product-capacity {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-left: 6px solid var(--gm-color-brand);
	background: var(--gm-surface-subtle, #faf8f4);
}

body.single-product .gm-product-capacity__eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gm-color-muted);
}

body.single-product .gm-product-capacity__value {
	margin: 0;
	font-size: var(--gm-title-page);
	font-family: var(--gm-font-display);
	font-weight: 900;
	line-height: 1.1;
}

/* Related products — align with shop card price layout */
body.single-product .related.products {
	margin-top: clamp(28px, 4vw, 40px);
	padding-top: clamp(20px, 3vw, 28px);
	border-top: 2px solid var(--gm-color-line);
}

body.single-product .related.products > h2 {
	margin: 0 0 18px;
	font-family: var(--gm-font-display);
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 900;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

body.single-product .related.products .products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: clamp(14px, 2vw, 20px);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-product .related.products .gm-card__price {
	display: grid;
	gap: 4px;
}

body.single-product .related.products .gm-card__price-main {
	display: block;
	line-height: 1.15;
}

body.single-product .related.products .gm-card__price-label,
body.single-product .related.products .gm-card__price-hint {
	display: block;
}

.gm-single-product__commercial-name {
	margin: 6px 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--gm-color-muted, #6b6867);
}

.gm-capacity-matrix {
	margin: 28px 0;
	padding: 24px;
	background: var(--gm-color-surface-subtle, #faf8f4);
	border: 1px solid var(--gm-color-line, #d8d3ca);
	border-radius: var(--gm-radius-md, 0);
}

.gm-capacity-matrix__title {
	margin: 0 0 8px;
	font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.gm-capacity-matrix__intro {
	margin: 0 0 16px;
	color: var(--gm-color-muted, #6b6867);
	font-size: 0.92rem;
	line-height: 1.55;
}

.gm-capacity-matrix__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.gm-capacity-matrix__table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.gm-capacity-matrix__table th,
.gm-capacity-matrix__table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--gm-color-line, #d8d3ca);
	text-align: left;
}

.gm-capacity-matrix__table thead th {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gm-color-muted, #6b6867);
}

/* =====================================================================
 * PDP mobile refinements (2026-06-02)
 *
 * - Fix banner overflow (was content-box + 22px padding -> +44px overflow).
 * - Reorder the article in mobile so the gallery is the first thing the
 *   visitor sees, then price + CTA, then promo banner at the bottom.
 *   80% of grosmac.com traffic is mobile, so the hero MUST be the machine.
 * - Hide decorative rails ("Project fit", "Technical rail") in mobile;
 *   they only add scroll between the buyer and the CTA.
 * - Disable the .gm-reveal entrance animation on small viewports to stop
 *   the flicker and to improve LCP.
 * - Make sure every primary CTA respects its container width
 *   (border-box + max-width 100%).
 * ===================================================================== */

body.single-product .gm-product-banner,
body.single-product .gm-product-banner__link {
	box-sizing: border-box;
	max-width: 100%;
}

body.single-product .gm-single-product__button--lead,
body.single-product .gm-single-product__button,
body.single-product .gm-quote-add--primary,
body.single-product .gm-product-banner__link {
	box-sizing: border-box;
	max-width: 100%;
}

@media (max-width: 600px) {
	body.single-product article.gm-single-product {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	body.single-product article.gm-single-product > .gm-single-product__header { order: 1; }
	body.single-product article.gm-single-product > .gm-single-product__layout  { order: 2; }
	body.single-product article.gm-single-product > .gm-single-product__trust-strip { order: 3; }
	body.single-product article.gm-single-product > .gm-product-banner { order: 4; }
	body.single-product article.gm-single-product > .gm-promo-slot { order: 4; }
	body.single-product article.gm-single-product > .gm-single-product__details { order: 5; }
	body.single-product article.gm-single-product > .gm-product-installations { order: 6; }
	body.single-product article.gm-single-product > * { order: 7; }

	body.single-product .gm-product-banner {
		padding: 16px;
		gap: 12px;
		border-radius: 0;
	}

	body.single-product .gm-product-banner .gm-panel__title {
		font-size: 1.05rem;
		line-height: 1.25;
	}

	body.single-product .gm-product-banner p {
		font-size: 0.92rem;
		line-height: 1.45;
	}

	body.single-product .gm-product-banner__link {
		display: inline-block;
		width: auto;
		padding: 10px 16px;
		font-size: 0.85rem;
	}

	body.single-product .gm-single-product__project-fit,
	body.single-product .gm-single-product__technical-rail {
		display: none;
	}

	body.single-product .gm-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}

	body.single-product .gm-single-product__layout {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	body.single-product .gm-single-product__gallery {
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product .gm-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}
}

/* -------------------------------------------------------------------------- */
/*  Product gallery lightbox (overlay)                                         */
/* -------------------------------------------------------------------------- */
/*
 * The lightbox markup is rendered by product-image.php whenever the
 * Interactivity API context is active. Until June 2026 the overlay was
 * unstyled so opening it rendered an in-flow block far below the
 * gallery, causing visible layout shift and a broken "popup" feel.
 * These rules pin the dialog over the viewport with a backdrop.
 */
.gm-lightbox[hidden] {
	display: none !important;
}

.gm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 3vw, 32px);
	background: transparent;
}

.gm-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 18, 0.9);
	cursor: zoom-out;
}

.gm-lightbox__frame {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: min(100%, 1200px);
	max-height: 100%;
	gap: 12px;
}

.gm-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-height: calc(100vh - 96px);
	overflow: hidden;
}

.gm-lightbox__image {
	max-width: 100%;
	max-height: calc(100vh - 96px);
	width: auto;
	height: auto;
	object-fit: contain;
	background: #fff;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
	cursor: zoom-in;
	transition: transform 0.2s ease;
}

.gm-lightbox__image.is-zoomed {
	transform: scale(1.6);
	cursor: zoom-out;
}

.gm-lightbox__iframe {
	width: 100%;
	height: min(70vh, calc((100vw - 64px) * 9 / 16));
	max-height: calc(100vh - 96px);
	border: 0;
	background: #000;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}

.gm-lightbox__btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	width: 44px;
	height: 44px;
	background: rgba(20, 18, 18, 0.7);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 0;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
	z-index: 2;
}

.gm-lightbox__btn:hover,
.gm-lightbox__btn:focus-visible {
	background: rgba(0, 0, 0, 0.9);
	outline: none;
}

.gm-lightbox__btn--close {
	top: 12px;
	right: 12px;
}

.gm-lightbox__btn--prev {
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.gm-lightbox__btn--prev:hover,
.gm-lightbox__btn--prev:focus-visible {
	transform: translateY(-50%);
}

.gm-lightbox__btn--next {
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.gm-lightbox__btn--next:hover,
.gm-lightbox__btn--next:focus-visible {
	transform: translateY(-50%);
}

.gm-lightbox__counter {
	color: rgba(255, 255, 255, 0.8);
	font-family: var(--gm-font-display, sans-serif);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (max-width: 600px) {
	.gm-lightbox__btn {
		width: 40px;
		height: 40px;
	}

	.gm-lightbox__btn--prev {
		left: 6px;
	}

	.gm-lightbox__btn--next {
		right: 6px;
	}

	.gm-lightbox__image,
	.gm-lightbox__iframe {
		max-height: calc(100vh - 72px);
	}
}
