/*
 * Hevea Core: single product template v4 (.hp-*). Loaded on product pages after
 * category-landing.css, whose .hc-* rules (tokens, headings, buttons, rows, cards,
 * accordion) it reuses. Selectors start with "body" to outrank Elementor's atomic
 * base styles.
 */

/* Hero */
body .hp-hero .hp-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(32px, 4vw, 64px);
	padding-top: clamp(24px, 3vw, 40px);
}
body .hp-hero .hp-gallery {
	position: sticky;
	top: 110px;
}
body .hp-hero .hp-gallery img {
	border-radius: var(--hc-radius);
}
body .hp-hero .hp-summary {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
body .hp-hero .woocommerce-breadcrumb {
	font-size: 13px !important;
	color: var(--hc-muted) !important;
	margin: 0 !important;
}
body .hp-hero .woocommerce-breadcrumb a {
	color: var(--hc-muted) !important;
}
body .hc .hp-title {
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 700;
	line-height: 1.1;
}
body .hc .hp-cats {
	font-size: 14px;
	color: var(--hc-muted);
}
body .hc .hp-cats a {
	color: var(--hc-muted);
	text-decoration: none;
}
body .hc .hp-cats a:hover {
	color: var(--hc-green-dark);
}
body .hp-hero .woocommerce-product-details__short-description,
body .hp-hero .woocommerce-product-details__short-description p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--hc-text);
}
body .hp-hero .price {
	font-size: 26px !important;
	font-weight: 700;
	color: var(--hc-ink) !important;
}
body .hp-hero .hp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}
body .hp-hero .hp-actions > .elementor-widget {
	width: auto !important;
	margin: 0 !important;
}
body .hp-hero .hp-actions .elementor-button {
	font-size: 16px;
	padding: 18px 34px;
}
body .hp-hero .hp-chips {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}
body .hp-hero .hp-chip {
	display: inline-flex;
	flex-direction: row;
	flex: 0 0 auto;
	width: auto;
	align-items: center;
	gap: 8px;
	padding: 8px 14px !important;
	border-radius: 999px;
	background: var(--hc-soft);
	font-size: 14px;
	font-weight: 500;
	color: var(--hc-ink);
}
body .hp-hero .hp-chip svg,
body .hp-hero .hp-chip .e-svg-base {
	width: 16px !important;
	height: 16px !important;
	fill: var(--hc-green-dark);
	color: var(--hc-green-dark);
}
body .hp-hero .hp-chip span {
	font-size: 14px;
	color: var(--hc-ink);
}

/* Sobre el producto */
body .hp-about .hp-about-row {
	align-items: flex-start;
}
body .hp-about .hp-about-text {
	flex: 1.4 1 0;
}
body .hp-about .hp-aside {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
/* No 3D model and no measuring table: the text takes the full width. */
body .hp-about .hp-aside:not(:has(.elementor-widget)) {
	display: none;
}
body .hp-about .hp-aside img {
	aspect-ratio: auto !important;
	object-fit: contain !important;
}
/* Rich ACF text (v3 text-editor): category-landing.css zeroes paragraph margins. */
body .hc .elementor-widget-text-editor p + p,
body .hc .elementor-widget-text-editor p + ul,
body .hc .elementor-widget-text-editor ul + p {
	margin-top: 12px;
}
body .hc .elementor-widget-text-editor h2,
body .hc .elementor-widget-text-editor h3 {
	margin: 24px 0 8px;
}
body .hp-about .hp-specs {
	margin-top: 12px;
}
body .hp-about .hp-specs .e-accordion-item-content-base table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
body .hp-about .hp-specs .e-accordion-item-content-base td,
body .hp-about .hp-specs .e-accordion-item-content-base th {
	padding: 8px 10px;
	border-bottom: 1px solid var(--hc-line);
	text-align: left;
}
body .hp-about .hp-video {
	margin-top: 12px;
	border-radius: var(--hc-radius);
	overflow: hidden;
}

/* Fundas */
body .hp-fundas .hc-inner:not(:has(.elementor-widget, .e-heading-base)) {
	display: none;
}
body .hp-fundas .hp-ctas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
body .hp-fundas .hp-ctas .elementor-cta {
	border-radius: var(--hc-radius);
	overflow: hidden;
	height: 100%;
}

/* Related, reviews and form: last block closes with air below */
body .hp-reviews .hc-inner {
	padding-bottom: 0;
}

@media (max-width: 1024px) {
	body .hp-hero .hp-hero-grid {
		grid-template-columns: 1fr;
	}
	body .hp-hero .hp-gallery,
	body .hp-about .hp-aside {
		position: static;
	}
	body .hp-about .hp-about-row {
		flex-direction: column;
	}
	body .hp-about .hp-about-text,
	body .hp-about .hp-aside {
		width: 100%;
	}
}
@media (max-width: 767px) {
	body .hp-hero .hp-actions > .elementor-widget,
	body .hp-hero .hp-actions .elementor-button {
		width: 100% !important;
	}
	body .hp-fundas .hp-ctas {
		grid-template-columns: 1fr;
	}
}
