/**
 * Mirrihue — Ficha individual de producto V3
 * Referencia: Productos V3 aprobada.
 */

/* =========================================================
   GENERATEPRESS / WOOCOMMERCE RESET
   ========================================================= */

body.single-product #page,
body.single-product #content,
body.single-product .site-content,
body.single-product #primary,
body.single-product .content-area {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

body.single-product #content,
body.single-product .site-content {
	display: block !important;
}

body.single-product #right-sidebar,
body.single-product #left-sidebar,
body.single-product .woocommerce-breadcrumb,
body.single-product .product_meta,
body.single-product .summary.entry-summary {
	display: none !important;
}

/* =========================================================
   HERO
   ========================================================= */

.mh-product-hero {
	position: relative;
	min-height: clamp(340px, 31vw, 455px);
	display: flex;
	align-items: center;
	color: #fff;
	background: var(--mh-product-hero-image) center 48% / cover no-repeat, #090909;
	overflow: hidden;
}

.mh-product-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.88) 34%, rgba(0,0,0,.48) 66%, rgba(0,0,0,.18) 100%),
		linear-gradient(0deg, rgba(0,0,0,.10), rgba(0,0,0,.10));
}

.mh-product-hero__container {
	position: relative;
	z-index: 2;

	padding-block:
		clamp(74px, 8vw, 110px)
		34px;
}

.mh-product-hero__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px;
	font-size: var(--mh-text-label);
	font-weight: 600;
	line-height: 1.4;
	color: rgba(255,255,255,.72);
}

.mh-product-hero__breadcrumb a { color: rgba(255,255,255,.82); text-decoration: none; }
.mh-product-hero__breadcrumb a:first-child { color: var(--mh-color-primary); }
.mh-product-hero__breadcrumb a:hover { color: #fff; }

.mh-product-hero__content {
	max-width: 820px;
}

.mh-product-hero__content h1 {
	
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(2.25rem, 4vw, 4.25rem);
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.035em;
	text-transform: uppercase;
}

.mh-product-hero__content p {
	max-width: 700px;
	margin: 0;
	color: rgba(255,255,255,.93);
	font-size: clamp(1rem, 1.25vw, 1.2rem);
	line-height: 1.5;
}

/* =========================================================
   MAIN PRODUCT
   ========================================================= */

.mh-product-detail {
	background: #fff;
}

.mh-product-detail > .mh-container {
	padding-top: clamp(46px, 5vw, 72px);
	padding-bottom: clamp(38px, 4vw, 62px);
}

.mh-product-detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
	align-items: start;
	gap: clamp(52px, 6vw, 88px);
}

/* Gallery */
.mh-product-detail__gallery { min-width: 0; }

.mh-product-detail__gallery .woocommerce-product-gallery {
	position: relative;
	float: none !important;
	display: grid !important;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 20px;
	width: 100% !important;
	margin: 0 !important;
}

.mh-product-detail__gallery .woocommerce-product-gallery__wrapper {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	margin: 0;
}

.mh-product-detail__gallery .woocommerce-product-gallery__image {
	overflow: hidden;
	background: #f3f3f3;
	border: 0;
	border-radius: 0;
}

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

.mh-product-detail__gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: contain;
	cursor: zoom-in;
}

.mh-product-detail__gallery .woocommerce-product-gallery__trigger {
	top: 14px !important;
	right: 14px !important;
	z-index: 6;
}

.mh-product-detail__gallery .flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	display: flex !important;
	flex-direction: column;
	gap: 14px;
	width: 92px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.mh-product-detail__gallery .flex-control-thumbs li {
	float: none !important;
	width: 92px !important;
	margin: 0 !important;
	overflow: hidden;
	background: #f5f5f5;
	border: 1px solid #d8d8d8;
	border-radius: 0;
}

.mh-product-detail__gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	opacity: .78;
	transition: opacity .16s ease;
}

.mh-product-detail__gallery .flex-control-thumbs img.flex-active,
.mh-product-detail__gallery .flex-control-thumbs img:hover {
	opacity: 1;
}

.mh-product-detail__gallery .flex-control-thumbs li:has(img.flex-active) {
	border-color: #222;
	box-shadow: inset 0 0 0 1px #222;
}

/* Summary */
.mh-product-detail__summary {
	padding-top: 4px;
}

.mh-product-detail__category {
	margin: 0 0 12px;
	color: var(--mh-color-primary);
	font-size: var(--mh-text-label);
	font-weight: 700;
	letter-spacing: .045em;
	line-height: 1.35;
	text-transform: uppercase;
}

.mh-product-detail__title {
	max-width: 650px;
	margin: 0 0 14px;
	color: #111;
	font-size: clamp(2rem, 2.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.025em;
}

.mh-product-detail__excerpt {
	max-width: 650px;
	margin: 0 0 26px;
	color: #4e4e4e;
	font-size: var(--mh-text-body);
	line-height: 1.65;
}

.mh-product-detail__excerpt p { margin: 0; }

.mh-product-detail__excerpt h3 {
	margin: 26px 0 14px;
	color: var(--mh-color-black, #171717);
	font-size: clamp(1.25rem, 1.6vw, 1.5rem);
	font-weight: 700;
	line-height: 1.2;
}

.mh-product-detail__specs-wrap {
	margin: 0 0 28px;
}

.mh-product-detail__specs-heading {
	margin: 0 0 14px;
	color: #111;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
}

.mh-product-detail__specs {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.mh-product-detail__spec-row {
	display: grid;
	grid-template-columns: 20px minmax(96px, .45fr) minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	padding: 0;
	border: 0;
	font-size: var(--mh-text-body-sm);
	line-height: 1.45;
}

.mh-product-detail__spec-row dt {
	margin: 0;
	color: #202020;
	font-weight: 700;
}

.mh-product-detail__spec-row dd {
	margin: 0;
	color: #404040;
}

.mh-lucide-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: #111;
}

.mh-lucide-icon svg,
.mh-product-detail__whatsapp-icon svg,
.mh-product-benefits__icon svg,
.mh-product-materiality__check svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Actions */
.mh-product-detail__actions {
	display: grid;
	grid-template-columns: 1fr 1.05fr .9fr;
	gap: 12px;
	margin-top: 60px;
}

.mh-product-detail__actions .mh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	min-width: 0;
	padding: 11px 16px;
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

.mh-product-detail__quote {
	color: #fff !important;
	background: var(--mh-color-primary) !important;
	border-color: var(--mh-color-primary) !important;
}

.mh-product-detail__quote:hover {
	background: var(--mh-color-primary-hover) !important;
	border-color: var(--mh-color-primary-hover) !important;
}

.mh-product-detail__whatsapp {
	color: #fff !important;
	background: #159a77 !important;
	border: 1px solid #159a77 !important;
}

.mh-product-detail__whatsapp:hover {
	background: #107d61 !important;
	border-color: #107d61 !important;
}

.mh-product-detail__whatsapp-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.mh-product-detail__back {
	color: #111 !important;
	background: #fff !important;
	border: 1px solid #111 !important;
}

.mh-product-detail__back:hover {
	color: #fff !important;
	background: #111 !important;
}

/* =========================================================
   MATERIALITY + BENEFITS
   ========================================================= */

.mh-product-materiality {
	padding: 0 0 clamp(38px, 4vw, 58px);
	background: #fff;
}

.mh-product-materiality__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
	gap: 0;
	align-items: stretch;
	padding: 30px 0;
	background-color: #efefef;
}

.mh-product-materiality__content,
.mh-product-materiality__benefits {
	min-width: 0;
}

.mh-product-materiality__content {
	padding: 22px 46px 20px 18px;
}

.mh-product-materiality__benefits {
	padding: 22px 18px 20px 46px;
	border-left: 1px solid #d7d7d7;
}

.mh-product-materiality h2 {
	margin: 0 0 22px;
	color: #111;
	font-size: clamp(1.6rem, 2vw, 2rem);
	font-weight: 700;
	line-height: 1.15;
}

.mh-product-materiality__list {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mh-product-materiality__list li {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	color: #333;
	font-size: var(--mh-text-body);
	line-height: 1.5;
}

.mh-product-materiality__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	padding: 5px;
	color: #fff;
	background: var(--mh-color-primary);
	border-radius: 50%;
}

.mh-product-materiality__check--benefit {
	background: #2f3439;
	color: #fff;
}

.mh-product-materiality__list strong { color: #111; }

.mh-product-materiality__image-wrap {
	overflow: hidden;
	background: #f2f2f2;
}

.mh-product-materiality__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 8.3;
	object-fit: cover;
}

.mh-product-materiality__empty {
	margin: 0;
	color: #777;
}

/* =========================================================
   BENEFITS STRIP
   ========================================================= */

.mh-product-benefits {
	padding: 0 0 clamp(46px, 5vw, 64px);
	background: #fff;
}

.mh-product-benefits__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: #0d0d0d;
	border-radius: 4px;
	overflow: hidden;
}

.mh-product-benefits__item {
	position: relative;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	min-height: 112px;
	padding: 20px 24px;
	color: #fff;
}

.mh-product-benefits__item + .mh-product-benefits__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 22px;
	bottom: 22px;
	width: 1px;
	background: rgba(255,255,255,.19);
}

.mh-product-benefits__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 8px;
	color: #fff;
}

.mh-product-benefits__icon svg {
	stroke: #fff;
}

.mh-product-benefits__copy {
	display: grid;
	gap: 5px;
}

.mh-product-benefits__copy strong {
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.mh-product-benefits__copy span {
	color: rgba(255,255,255,.74);
	font-size: .72rem;
	line-height: 1.45;
}

/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

.mh-product-related {
	padding: 0 0 clamp(76px, 8vw, 120px);
	background: #fff;
}

.mh-product-related__header {
	margin: 0 0 22px;
}

.mh-product-related__header h2 {
	margin: 0;
	color: #111;
	font-size: clamp(1.25rem, 1.8vw, 1.55rem);
	font-weight: 700;
	letter-spacing: .01em;
	text-transform: uppercase;
}

.mh-product-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.mh-related-card {
	min-width: 0;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 4px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.mh-related-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 34px rgba(0,0,0,.08);
}

.mh-related-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.mh-related-card__media {
	overflow: hidden;
	background: #f2f2f2;
}

.mh-related-card__image,
.mh-related-card__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.mh-related-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 15px 16px 17px;
}

.mh-related-card__category {
	margin: 0 0 8px;
	color: var(--mh-color-primary);
	font-size: .68rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}

.mh-related-card__body h3 {
	margin: 0 0 8px;
	color: #111;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.22;
}

.mh-related-card__excerpt {
	margin: 0 0 14px;
	color: #666;
	font-size: .82rem;
	line-height: 1.45;
}

.mh-related-card__cta {
	margin-top: auto;
	color: var(--mh-color-primary);
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
	.mh-product-detail__grid {
		grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
		gap: 44px;
	}

	.mh-product-detail__actions {
		grid-template-columns: 1fr 1fr;
	}

	.mh-product-detail__back {
		grid-column: 1 / -1;
	}

	.mh-product-benefits__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mh-product-benefits__item:nth-child(3)::before { display: none; }
}

@media (max-width: 900px) {
	.mh-product-detail__grid {
		grid-template-columns: 1fr;
		gap: 42px;
	}

	.mh-product-detail__gallery {
		max-width: 720px;
		margin-inline: auto;
	}

	.mh-product-materiality__grid {
		grid-template-columns: 1fr;
	}

	.mh-product-materiality__content {
		padding: 10px 0 36px;
	}

	.mh-product-materiality__benefits {
		padding: 36px 0 0;
		border-top: 1px solid #d7d7d7;
		border-left: 0;
	}

	.mh-product-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mh-product-hero {
		min-height: 390px;
		background-position: 60% center;
	}

	.mh-product-hero__overlay {
		background: rgba(0,0,0,.72);
	}

	.mh-product-hero__container {
		padding-top: 98px;
		padding-bottom: 44px;
	}

	.mh-product-hero__content h1 {
		font-size: clamp(2rem, 10vw, 3rem);
	}

	.mh-product-detail > .mh-container {
		padding-top: 38px;
	}

	.mh-product-detail__gallery .woocommerce-product-gallery {
		display: flex !important;
		flex-direction: column;
		gap: 12px;
	}

	.mh-product-detail__gallery .woocommerce-product-gallery__wrapper {
		order: 1;
	}

	.mh-product-detail__gallery .flex-control-thumbs {
		order: 2;
		width: 100%;
		flex-direction: row;
		overflow-x: auto;
		gap: 10px;
		padding-bottom: 4px !important;
	}

	.mh-product-detail__gallery .flex-control-thumbs li {
		flex: 0 0 72px;
		width: 72px !important;
	}

	.mh-product-detail__title {
		font-size: 1.8rem;
	}

	.mh-product-detail__spec-row {
		grid-template-columns: 20px minmax(88px, .5fr) minmax(0, 1fr);
		gap: 8px;
	}

	.mh-product-detail__actions {
		grid-template-columns: 1fr;
	}

	.mh-product-detail__back {
		grid-column: auto;
	}

	.mh-product-benefits__grid {
		grid-template-columns: 1fr;
	}

	.mh-product-benefits__item + .mh-product-benefits__item::before {
		top: 0;
		left: 22px;
		right: 22px;
		bottom: auto;
		width: auto;
		height: 1px;
	}

	.mh-product-related__grid {
		grid-template-columns: 1fr;
	}
}
