/*
 * Hevea Core: category template additions (category-template.php). Loaded only on product_cat archives,
 * after category-landing.css, whose tokens (--hc-*) it reuses.
 */

/* ---------- Product cards [hevea_product_card] ---------- */
/* The loop item inherits 20px side padding from the old card (22599): the card fills its column instead. */
body .e-loop-item:has(.hpc-loop) {
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	height: 100%;
}
body .e-loop-item .hpc-loop {
	flex: 1 1 auto;
}
body .elementor-loop-container:has(.hpc) {
	align-items: stretch !important;
	column-gap: 24px !important;
	row-gap: 24px !important;
}
@media (max-width: 767px) {
	body .elementor-loop-container:has(.hpc) {
		column-gap: 12px !important;
		row-gap: 12px !important;
	}
}
.hpc-loop,
.hpc-loop .elementor-widget-shortcode,
.hpc-loop .elementor-widget-container,
.hpc-loop .elementor-shortcode {
	height: 100%;
	padding: 0 !important;
}
.hpc {
	--hpc-green: #95C11F;
	--hpc-green-dark: #3E8202;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 16px;
	background: #fff;
	border: 1px solid #e3e7e0;
	border-radius: 12px;
	cursor: pointer;
	font-family: Montserrat, sans-serif;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.hpc-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #F6F8F5;
	border-radius: 8px;
	overflow: hidden;
}
.hpc-media .hpc-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	display: block;
	transition: transform 0.2s ease;
}
.hpc-stock {
	align-self: flex-start;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 999px;
	background: #eef6dc;
	color: var(--hpc-green-dark);
}
body .hpc .hpc-title {
	min-height: calc(2 * 1.35em);
	margin: 0;
	font-family: Montserrat, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #232323;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Short text under the name (product field texto_card), 2 lines. */
body .hpc .hpc-text {
	margin: 0;
	font-family: Montserrat, sans-serif;
	font-size: 13.5px;
	line-height: 1.45;
	color: #5a5a5a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	/* Always two lines tall (three on mobile); with the title also two lines, every text starts at the same height. */
	min-height: calc(2 * 1.45em);
}
/* Two cards per row on mobile (about 20 characters a line): three lines for the card text. */
@media (max-width: 767px) {
	body .hpc .hpc-text {
		font-size: 13px;
		-webkit-line-clamp: 3;
		min-height: calc(3 * 1.45em);
	}
}
body .hpc .hpc-link {
	color: inherit;
	text-decoration: none;
}
/* Stretched link: the whole card opens the product. */
.hpc .hpc-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 12px;
}
.hpc .hpc-link:focus-visible {
	outline: none;
}
.hpc:has(.hpc-link:focus-visible) {
	outline: 3px solid var(--hpc-green-dark);
	outline-offset: 3px;
}
body .hpc .hpc-quote {
	position: relative;
	z-index: 2;
	margin-top: auto;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	color: var(--hpc-green-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}
body .hpc .hpc-quote:hover {
	color: #000;
}
/* Preview button: above the stretched link. */
.hpc .hpc-preview {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.78);
	color: #fff;
	font: 600 14px/1 Montserrat, sans-serif;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
}
.hpc .hpc-preview:hover {
	background: #000;
}
.hpc .hpc-preview:focus-visible {
	opacity: 1;
	outline: 3px solid #fff;
	outline-offset: 2px;
}
@media (hover: hover) {
	.hpc:hover {
		transform: translateY(-2px);
		border-color: var(--hpc-green);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	}
	.hpc:hover .hpc-img {
		transform: scale(1.03);
	}
	.hpc:hover .hpc-preview {
		opacity: 1;
	}
}
@media (hover: none) {
	.hpc .hpc-preview {
		opacity: 1;
		left: auto;
		top: auto;
		right: 8px;
		bottom: 8px;
		transform: none;
		padding: 7px 12px;
		font-size: 12px;
	}
}
@media (max-width: 767px) {
	.hpc {
		padding: 10px;
		gap: 8px;
	}
	body .hpc .hpc-title {
		font-size: 14px;
	}
	body .hpc .hpc-quote {
		font-size: 13px;
	}
}

/* ---------- Quick preview popup ---------- */
.hpv {
	width: min(1100px, calc(100vw - 32px));
	max-height: 90vh;
	padding: 0;
	border: 0;
	border-radius: 20px;
	overflow: hidden;
	font-family: Montserrat, sans-serif;
	color: #4a4a4a;
}
.hpv::backdrop {
	background: rgba(0, 0, 0, 0.6);
}
.hpv-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	height: min(90vh, 760px);
}
.hpv-photo {
	background: #F6F8F5;
	display: grid;
	place-items: center;
	padding: 24px;
	min-height: 0;
}
.hpv-photo img {
	display: block;
	width: 100% !important;
	height: calc(min(90vh, 760px) - 48px) !important;
	max-width: 100%;
	object-fit: contain;
}
.hpv-side {
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.hpv-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 28px 64px 20px 28px;
	border-bottom: 1px solid #e3e7e0;
}
body .hpv .hpv-title {
	flex: 1 1 100%;
	margin: 0;
	font: 700 22px/1.25 Montserrat, sans-serif;
	color: #232323;
}
body .hpv .hpv-cta {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 8px;
	background: #95C11F;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
body .hpv .hpv-cta:hover {
	background: #000;
	color: #fff;
}
.hpv-body {
	overflow-y: auto;
	padding: 8px 28px 28px;
	overscroll-behavior: contain;
}
.hpv-section {
	border-bottom: 1px solid #e3e7e0;
}
.hpv-section summary {
	cursor: pointer;
	padding: 16px 0;
	font-weight: 600;
	color: #232323;
	list-style: none;
	display: flex;
	justify-content: space-between;
}
.hpv-section summary::-webkit-details-marker {
	display: none;
}
.hpv-section summary::after {
	content: "−";
	font-weight: 400;
}
.hpv-section:not([open]) summary::after {
	content: "+";
}
.hpv-content {
	padding-bottom: 16px;
	font-size: 15px;
	line-height: 1.6;
}
.hpv-content table {
	width: 100%;
	font-size: 14px;
}
.hpv-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #f1f1f1;
	color: #232323;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.hpv-close:hover {
	background: #000;
	color: #fff;
}
.hpv-loading {
	display: grid;
	gap: 12px;
	padding: 20px 0;
}
.hpv-loading span {
	height: 18px;
	border-radius: 6px;
	background: linear-gradient(90deg, #f0f0f0, #e4e4e4, #f0f0f0);
	background-size: 200% 100%;
	animation: hpv-shimmer 1.2s infinite;
}
@keyframes hpv-shimmer {
	to {
		background-position: -200% 0;
	}
}
@media (max-width: 767px) {
	.hpv {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
	}
	.hpv-grid {
		display: block;
		height: 100%;
		overflow-y: auto;
	}
	.hpv-photo {
		height: 42vh;
		padding: 16px;
	}
	.hpv-photo img {
		height: calc(42vh - 32px) !important;
	}
	.hpv-side,
	.hpv-body {
		overflow: visible;
	}
	.hpv-head {
		padding: 20px 20px 12px;
	}
	.hpv-head .hpv-cta {
		position: fixed;
		left: 16px;
		right: 16px;
		bottom: 16px;
		z-index: 2;
		text-align: center;
	}
	.hpv-body {
		padding: 4px 20px 20px;
	}
}

/* ---------- Success cases [hevea_cat_casos] ---------- */
body .hc-cases .hc-inner {
	gap: 16px;
}
body .hc-cases .hc-cases-intro {
	max-width: 760px;
}
.hc-cases-slider {
	margin-top: 16px;
}
.hc-cases-track {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.hc-cases-slider.is-slider .hc-cases-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.hc-cases-slider.is-slider .hc-cases-track::-webkit-scrollbar {
	display: none;
}
.hc-cases-slider.is-slider .hc-case {
	flex: 0 0 calc((100% - 40px) / 3);
	scroll-snap-align: start;
}
.hc-case {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--hc-line, #e3e7e0);
	border-radius: var(--hc-radius, 14px);
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.hc-case .hc-case-img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}
.hc-case-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
}
.hc-case-type {
	align-self: flex-start;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hc-green-dark, #3E8202);
}
body .hc .hc-case-title {
	font-size: 18px;
}
body .hc .hc-case-body p {
	font-size: 14.5px;
	line-height: 1.55;
}
body .hc .hc-case-products {
	margin-top: 4px;
}
.hc-cases-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
}
.hc-cases-nav button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--hc-line, #e3e7e0);
	background: #fff;
	color: #232323;
	font-size: 18px;
	cursor: pointer;
}
.hc-cases-nav button:hover {
	background: #000;
	color: #fff;
}
.hc-cases-nav button[disabled] {
	opacity: 0.35;
	cursor: default;
}
.hc-cases-dots {
	display: flex;
	gap: 8px;
}
.hc-cases-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	background: #d6dbd2;
}
.hc-cases-dots button[aria-current="true"] {
	background: var(--hc-green, #95C11F);
}
body .hc .hc-cases-all a {
	font-weight: 600;
}
@media (max-width: 1024px) {
	.hc-cases-track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.hc-cases-slider.is-slider .hc-case {
		flex-basis: calc((100% - 20px) / 2);
	}
}
@media (max-width: 767px) {
	.hc-cases-track,
	.hc-cases-slider:not(.is-slider) .hc-cases-track {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.hc-case,
	.hc-cases-slider.is-slider .hc-case {
		flex: 0 0 85%;
		scroll-snap-align: start;
	}
}

/* ---------- Numbered pagination of the product grid ---------- */
body .hc-products .elementor-pagination,
body .elementor-widget-loop-grid .elementor-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
	font-family: Montserrat, sans-serif;
}
body .elementor-widget-loop-grid .elementor-pagination .page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e3e7e0;
	border-radius: 8px;
	background: #fff;
	color: #232323;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
body .elementor-widget-loop-grid .elementor-pagination a.page-numbers:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}
body .elementor-widget-loop-grid .elementor-pagination .page-numbers.current {
	background: #95C11F;
	border-color: #95C11F;
	color: #fff;
}
body .elementor-widget-loop-grid .elementor-pagination span.prev,
body .elementor-widget-loop-grid .elementor-pagination span.next {
	color: #b5b5b5;
	border-color: #eee;
}
body .elementor-widget-loop-grid .elementor-pagination .dots {
	border: 0;
	min-width: 0;
}

/* ---------- Preview button and popup, restyled (27-10, user review) ---------- */
body .hpc .hpc-preview {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	padding: 11px 18px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #1a1a1a;
	font: 600 14px/1 Montserrat, sans-serif;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
body .hpc .hpc-preview::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
body .hpc .hpc-preview:hover,
body .hpc .hpc-preview:focus-visible {
	background: #1a1a1a;
	color: #fff;
}
/* The product name for screen readers must never take room in the pill. */
body .hpc .hpc-preview .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
@media (hover: none) {
	body .hpc .hpc-preview {
		padding: 8px 12px;
		font-size: 12px;
	}
	body .hpc .hpc-preview::before {
		width: 15px;
		height: 15px;
	}
}

body .hpv {
	width: min(1040px, calc(100vw - 32px));
	max-height: 88vh;
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
	color: #4a4a4a;
}
body .hpv .hpv-grid {
	height: auto;
	max-height: 88vh;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
body .hpv .hpv-photo {
	background: #fff;
	padding: 32px;
	border-right: 1px solid #ececea;
	display: flex;
	align-items: center;
	justify-content: center;
}
body .hpv .hpv-photo img {
	width: 100% !important;
	height: auto !important;
	max-height: calc(88vh - 64px);
	object-fit: contain;
	border-radius: 12px;
}
body .hpv .hpv-side {
	max-height: 88vh;
}
body .hpv .hpv-head {
	padding: 32px 76px 24px 32px;
	gap: 16px;
}
body .hpv .hpv-title {
	font: 700 24px/1.25 Montserrat, sans-serif;
	letter-spacing: -0.01em;
}
body .hpv .hpv-cta {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 28px;
	border-radius: 999px;
	background: #1a1a1a;
	color: #fff;
	font: 600 15px/1 Montserrat, sans-serif;
	text-decoration: none;
}
body .hpv .hpv-cta:hover,
body .hpv .hpv-cta:focus-visible {
	background: #95C11F;
	color: #fff;
}
body .hpv .hpv-body {
	padding: 4px 32px 32px;
}
body .hpv .hpv-section summary {
	padding: 18px 0;
	font: 600 16px/1.3 Montserrat, sans-serif;
	align-items: center;
}
body .hpv .hpv-section summary::after,
body .hpv .hpv-section:not([open]) summary::after {
	content: "";
	width: 28px;
	height: 28px;
	flex: none;
	border-radius: 50%;
	background: #f2f4ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E8202' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform 0.2s ease;
}
body .hpv .hpv-section[open] summary::after {
	transform: rotate(180deg);
}
body .hpv .hpv-content {
	padding-bottom: 20px;
	font: 400 15px/1.65 Montserrat, sans-serif;
	color: #4a4a4a;
}
body .hpv .hpv-content p {
	margin: 0 0 8px;
}
body .hpv .hpv-close {
	top: 20px;
	right: 20px;
	padding: 0;
	min-height: 0;
	background: #f2f2ef;
	color: #1a1a1a;
	font-size: 0;
}
/* The theme's button padding pushed the × glyph off centre; two drawn bars sit exactly in the middle */
body .hpv .hpv-close::before,
body .hpv .hpv-close::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 16px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transform: rotate(45deg);
}
body .hpv .hpv-close::after {
	transform: rotate(-45deg);
}
@media (max-width: 767px) {
	body .hpv {
		width: 100vw;
		max-height: 100dvh;
		border-radius: 0;
	}
	body .hpv .hpv-grid {
		display: block;
		max-height: 100dvh;
	}
	body .hpv .hpv-photo {
		border-right: 0;
		padding: 16px;
	}
	body .hpv .hpv-photo img {
		max-height: 38vh;
	}
	body .hpv .hpv-head {
		padding: 20px 20px 12px;
	}
	body .hpv .hpv-title {
		font-size: 20px;
	}
	body .hpv .hpv-body {
		padding: 0 20px 96px;
	}
}

/* The last block before the quote form (category block, benefit cards or success cases) keeps air below:
   without FAQ or cases the cards touched the form section. */
body .elementor-widget-shortcode:last-child .hc-section:last-of-type > .hc-inner {
	padding-bottom: var(--hc-gap, clamp(56px, 7vw, 104px));
}

/* ---------- Category filters [hevea_cat_filters] (category-filters.php) ---------- */
/* The products and quote form containers used Elementor's 1140px boxed width; hero and text sections use --hc-max (1240px). */
body .e-con.hc-products,
body .e-con.hevea-quote-section {
	--content-width: min(100%, var(--hc-max, 1240px));
}
/* Without filters the column (.hcf-col) is not rendered and the grid takes the whole row. */
body .hc-products .hcf-grid:first-child {
	--width: 100%;
	width: 100%;
}
body .hc-products .hcf-grid {
	transition: opacity .2s;
}
body .hc-products .hcf-grid.is-loading {
	opacity: .45;
	pointer-events: none;
}
body .hc-products .hcf-col {
	padding-right: 32px !important;
}
.hcf {
	position: sticky;
	top: 110px;
	font-family: Montserrat, sans-serif;
	color: var(--hc-ink, #232323);
}
.hcf-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}
body .hcf .hcf-toggle,
body .hcf .hcf-more {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
}
body .hcf .hcf-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}
.hcf-title {
	font-size: 20px;
	font-weight: 700;
}
.hcf-badge {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--hc-green, #95C11F);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}
.hcf-clear {
	white-space: nowrap;
	font-size: 13px;
	color: var(--hc-muted, #737373);
	text-decoration: underline;
}
.hcf-clear:hover {
	color: var(--hc-ink, #232323);
}
.hcf-group {
	margin: 0 0 22px;
	padding: 0 0 22px;
	border: 0;
	border-bottom: 1px solid var(--hc-line, #e3e7e0);
	min-width: 0;
}
.hcf-group legend {
	padding: 0;
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 600;
}
.hcf-group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.hcf-group .hcf-extra {
	display: none;
}
.hcf-group.is-open .hcf-extra {
	display: block;
}
.hcf-group label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
}
.hcf-group input {
	appearance: none;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1.5px solid #b9beb6;
	border-radius: 4px;
	background: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.hcf-group input::after {
	content: "";
	width: 9px;
	height: 5px;
	border: 2px solid #fff;
	border-top: 0;
	border-right: 0;
	transform: translateY(-1px) rotate(-45deg) scale(0);
	transition: transform .15s;
}
.hcf-group input:checked {
	background: var(--hc-green, #95C11F);
	border-color: var(--hc-green, #95C11F);
}
.hcf-group input:checked::after {
	transform: translateY(-1px) rotate(-45deg) scale(1);
}
.hcf-group input:focus-visible {
	outline: 2px solid var(--hc-green-dark, #3E8202);
	outline-offset: 2px;
}
.hcf-group label:hover input:not(:checked) {
	border-color: var(--hc-ink, #232323);
}
.hcf-name {
	flex: 1 1 auto;
}
.hcf-count {
	color: var(--hc-muted, #737373);
	font-size: 12px;
}
body .hcf .hcf-more {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hc-green-dark, #3E8202);
	cursor: pointer;
}
body .hcf .hcf-toggle:hover,
body .hcf .hcf-toggle:focus {
	background: none;
	color: inherit;
}
body .hcf .hcf-more:hover,
body .hcf .hcf-more:focus {
	background: none;
	color: var(--hc-green-dark, #3E8202);
	text-decoration: underline;
}
.hcf-apply {
	padding: 10px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--hc-ink, #232323);
	color: #fff;
	font: 600 14px Montserrat, sans-serif;
	cursor: pointer;
}
.hcf.is-js .hcf-apply {
	display: none;
}
/* Mobile: filters above the grid, folded behind a "Filtros" button. */
@media (max-width: 1024px) {
	body .hc-products:has(.hcf-col) {
		flex-direction: column;
	}
	body .hc-products .hcf-col,
	body .hc-products .hcf-grid {
		--width: 100%;
		width: 100%;
	}
	body .hc-products .hcf-col {
		padding-right: 0 !important;
		margin-bottom: 20px;
	}
	.hcf {
		position: static;
	}
	.hcf-head {
		margin-bottom: 0;
		align-items: center;
	}
	body .hcf .hcf-toggle {
		pointer-events: auto;
		cursor: pointer;
		padding: 10px 18px;
		border: 1px solid var(--hc-ink, #232323);
		border-radius: 999px;
	}
	.hcf-title {
		font-size: 15px;
		font-weight: 600;
	}
	.hcf-toggle::after {
		content: "";
		width: 7px;
		height: 7px;
		border: solid currentColor;
		border-width: 0 2px 2px 0;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .2s;
	}
	.hcf.is-open .hcf-toggle::after {
		transform: translateY(1px) rotate(-135deg);
	}
	.hcf-body {
		display: none;
		margin-top: 16px;
	}
	.hcf.is-open .hcf-body {
		display: block;
	}
	.hcf-group label {
		padding: 8px 0;
	}
}

/* "Acabados y materiales" ([hevea_acabados_inteligente]): an accordion inside the accordion. With a single finish
   it is shown open and static (its header reads as a subtitle); with several it keeps working as an accordion.
   This file loads on product pages and in the category quick preview, the two places the shortcode renders. */
body .hevea-acc__item:only-child .hevea-acc__panel {
	display: block;
}
body .hevea-acc__item:only-child .hevea-acc__head {
	cursor: default;
	pointer-events: none;
	border-bottom-color: #e6e6e6;
	background: #fff;
}
body .hevea-acc__item:only-child .hevea-acc__icon {
	display: none;
}

/* Preview modal: "Pedir presupuesto" in a footer, bottom right, always visible under the scrolling details */
.hpv-body {
	flex: 1 1 auto;
	min-height: 0;
}
body .hpv .hpv-foot {
	display: flex;
	justify-content: flex-end;
	padding: 16px 32px;
	border-top: 1px solid #ececea;
	background: #fff;
}
body .hpv .hpv-head {
	padding-bottom: 20px;
}
@media (max-width: 767px) {
	body .hpv .hpv-side {
		max-height: none;
	}
	body .hpv .hpv-foot {
		position: sticky;
		bottom: 0;
		padding: 12px 20px;
	}
	body .hpv .hpv-foot .hpv-cta {
		width: 100%;
		justify-content: center;
	}
	body .hpv .hpv-body {
		padding-bottom: 24px;
	}
}
