/* =============================================================================
   FICHA INDIVIDUAL DE PRODUCTO
   -----------------------------------------------------------------------------
   Referencia: propuestas-visuales/ficha-producto-propuesta-v1.png.
   Plantilla: templates/single-product.html. Se carga sólo en is_product().

   Sólo reviste: imágenes, nombre, precio, descripción, categorías y
   relacionados salen de WooCommerce tal cual. Header, footer y logo son los
   de siempre (home.css).

   La descripción llega agrupada en <section> por functions.php
   (render_block_woocommerce/product-details) — sin cambiar el texto.
   ========================================================================== */

.single-product {
	/* El turquesa del panel de la galería no está en la paleta de theme.json:
	   es un tono de la maqueta que sólo usa esta ficha. */
	--mp-turquesa: #5bc3c0;
	--mp-coral-tinta: #b3403a;   /* coral oscurecido: 5,4:1 sobre papel */
	--mp-pincel-coral: color-mix( in srgb, var( --wp--preset--color--coral ) 78%, var( --wp--preset--color--blanco ) );
	--mp-pincel-lila: color-mix( in srgb, var( --wp--preset--color--violeta ) 55%, var( --wp--preset--color--blanco ) );
	--mp-papel-lila: color-mix( in srgb, var( --wp--preset--color--violeta ) 40%, #fdfbff );
	--mp-linea: rgb( 61 52 54 / 0.2 );
}

.single-product main.wp-block-group { overflow-x: clip; }

.mp-producto-columnas {
	margin-top: clamp( 1rem, 2.4vw, 2rem ) !important;
	gap: clamp( 1.6rem, 4vw, 3.5rem ) !important;
	align-items: flex-start !important;
}


/* -----------------------------------------------------------------------------
   Galería: panel turquesa de papel acuarelado, con un pedacito de cinta.
   -------------------------------------------------------------------------- */

.mp-producto-galeria {
	position: relative;
	isolation: isolate;
	min-width: 0;
	padding: clamp( 1.1rem, 2.6vw, 2.1rem ) clamp( 1rem, 2.6vw, 2.1rem ) clamp( 1rem, 2vw, 1.6rem );
}
.mp-producto-galeria::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var( --mp-turquesa );
	border-radius: 10px;
	filter: url( "#mp-acuarela-fina" );
	pointer-events: none;
}
/* Cinta de papel pegando el panel: puro adorno. */
.mp-producto-galeria::after {
	content: "";
	position: absolute;
	top: -0.7rem;
	left: -0.6rem;
	z-index: 2;
	width: clamp( 4.2rem, 8vw, 5.6rem );
	height: 1.7rem;
	background:
		repeating-linear-gradient( 90deg, rgb( 202 129 182 / 0.22 ) 0 6px, transparent 6px 12px ),
		rgb( 250 244 230 / 0.92 );
	box-shadow: 0 2px 4px rgb( 61 52 54 / 0.15 );
	transform: rotate( -14deg );
	clip-path: polygon( 3% 0, 97% 6%, 100% 50%, 96% 100%, 2% 94%, 0 45% );
	pointer-events: none;
}

.mp-producto-galeria .wc-block-product-gallery { gap: 1rem !important; }
.mp-producto-galeria .wc-block-product-gallery-large-image { background: transparent; }

/* La tapa entera, sin recortes: contain en vez del cover que trae el bloque. */
.mp-producto-galeria .wc-block-product-gallery-large-image__wrapper img {
	object-fit: contain !important;
	max-height: min( 70vh, 640px );
	filter: drop-shadow( 0 10px 14px rgb( 30 60 60 / 0.3 ) );
	border-radius: 3px;
}

.mp-producto-galeria .wc-block-next-previous-buttons__button {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: rgb( 255 255 255 / 0.9 );
	color: var( --wp--preset--color--tinta );
	box-shadow: var( --mp-sombra-baja );
}
.mp-producto-galeria .wc-block-next-previous-buttons__button svg { width: 1rem; height: 1rem; }

/* Miniaturas como fotitos de papel blanco. */
.mp-producto-galeria .wc-block-product-gallery-thumbnails { min-width: 0; }
.mp-producto-galeria .wc-block-product-gallery-thumbnails__scrollable {
	gap: 0.6rem;
	padding: 0.35rem 0.2rem 0.5rem;
	scrollbar-width: thin;
	scrollbar-color: rgb( 255 255 255 / 0.7 ) transparent;
}
.mp-producto-galeria .wc-block-product-gallery-thumbnails__thumbnail {
	padding: 3px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgb( 30 60 60 / 0.25 );
}
.mp-producto-galeria .wc-block-product-gallery-thumbnails__thumbnail__image {
	border-radius: 2px;
}
.mp-producto-galeria .wc-block-product-gallery-thumbnails__thumbnail:has( .wc-block-product-gallery-thumbnails__thumbnail__image--is-active ) {
	outline: 3px solid var( --wp--preset--color--tinta );
	outline-offset: 1px;
}
/* El degradé de "hay más a la derecha" del bloque es blanco: sobre turquesa
   parecía una mancha. */
.mp-producto-galeria .wc-block-product-gallery-thumbnails::before,
.mp-producto-galeria .wc-block-product-gallery-thumbnails::after {
	display: none !important;
}


/* -----------------------------------------------------------------------------
   Detalle: título sobre pincelada coral, precio coral, bajada legible.
   -------------------------------------------------------------------------- */

.mp-producto-detalle { min-width: 0; }
.mp-producto-detalle > * { margin-block-start: 0; }

.mp-producto-titulo.wp-block-post-title {
	position: relative;
	isolation: isolate;
	width: fit-content;
	max-width: 100%;
	margin: 0.4rem 0 1.1rem !important;
	padding: 0.12em 0.5em 0.2em 0.35em;
	font-family: var( --wp--preset--font-family--titulo );
	font-size: clamp( 2rem, 1.3rem + 2.3vw, 3.3rem );
	font-weight: 400;
	line-height: 1.08;
	text-wrap: balance;
	overflow-wrap: anywhere;
	color: var( --wp--preset--color--tinta );
	transform: rotate( -1.2deg );
}
.mp-producto-titulo.wp-block-post-title::before {
	content: "";
	position: absolute;
	inset: 8% -0.2em 4% -0.3em;
	z-index: -1;
	background: var( --mp-pincel-coral );
	border-radius: 8px;
	filter: url( "#mp-pincelada" );
}

.mp-producto-precio-single,
.mp-producto-precio-single .wc-block-components-product-price__value,
.mp-producto-precio-single .woocommerce-Price-amount {
	color: var( --mp-coral-tinta ) !important;
}
.mp-producto-precio-single {
	margin: 0 0 0.9rem !important;
	font-family: var( --wp--preset--font-family--texto );
	font-size: clamp( 1.8rem, 1.4rem + 1.1vw, 2.35rem ) !important;
	font-weight: 800;
	line-height: 1.1;
}
.single-product .mp-producto-precio-single ins,
.single-product .mp-producto-precio-single bdi,
.single-product .mp-producto-precio-single .woocommerce-Price-currencySymbol { font-weight: inherit; }
.mp-producto-precio-single del { opacity: 0.55; font-weight: 600; font-size: 0.7em; }

.mp-producto-bajada {
	max-width: 36em;
	margin: 0 0 1.4rem !important;
	font-size: clamp( 1rem, 0.95rem + 0.2vw, 1.1rem );
	line-height: 1.65;
	color: var( --wp--preset--color--tinta );
}
.mp-producto-bajada p { margin: 0; }


/* -----------------------------------------------------------------------------
   Compra: tarjeta lila con cantidad + "¡Lo quiero!" (la acción principal) y,
   debajo de una línea, "Añadir al carrito" como opción secundaria.

   El formulario trae: un grupo con [botón carrito, selector de cantidad], el
   botón del plugin de compra directa (.wpcbn-btn) y un input oculto. El grupo
   se disuelve (display: contents) para acomodar las tres piezas en una grilla
   sin mover nada del DOM ni tocar la lógica.
   -------------------------------------------------------------------------- */

.mp-agregar-carrito {
	position: relative;
	isolation: isolate;
	margin: 0 0 1.3rem !important;
	padding: clamp( 1.1rem, 2.4vw, 1.6rem ) clamp( 1.1rem, 2.6vw, 1.9rem ) 0.9rem;
}
.mp-agregar-carrito::after { display: none !important; }
/* WooCommerce le pone al form.cart un clearfix (display: table) en ::before;
   como tabla, el pseudo se encoge al contenido aunque tenga inset: 0. */
.mp-agregar-carrito::before {
	content: "";
	display: block !important;
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var( --mp-papel-lila );
	border-radius: 14px;
	filter: url( "#mp-recorte-fino" ) drop-shadow( 0 4px 10px rgb( 61 52 54 / 0.1 ) );
	pointer-events: none;
}

.mp-agregar-carrito:has( > .wpcbn-btn ) {
	display: grid !important;
	grid-template-columns: auto minmax( 0, 1fr );
	grid-template-areas:
		"cantidad quiero"
		"carrito  carrito";
	align-items: end;
	column-gap: clamp( 0.8rem, 2vw, 1.4rem );
}
.mp-agregar-carrito:has( > .wpcbn-btn ) > .wp-block-group { display: contents; }
.mp-agregar-carrito > * { margin: 0 !important; }

/* Cantidad, con su rótulo visible como en la maqueta. El input ya tiene su
   etiqueta accesible: el rótulo se oculta de los lectores de pantalla. */
.mp-agregar-carrito .wc-block-add-to-cart-with-options__quantity-selector {
	grid-area: cantidad;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.mp-agregar-carrito .wc-block-add-to-cart-with-options__quantity-selector::before {
	content: "Cantidad";
	content: "Cantidad" / "";
	font-size: 0.95rem;
	font-weight: 700;
	color: var( --wp--preset--color--tinta );
}
.mp-agregar-carrito .wc-block-components-quantity-selector {
	display: flex;
	align-items: stretch;
	width: 8.4rem;
	min-width: 0;
	height: 3.2rem;
	margin: 0;
	background: #fff;
	border: 1.5px solid rgb( 61 52 54 / 0.35 ) !important;
	border-radius: 12px;
	box-shadow: 0 2px 0 rgb( 61 52 54 / 0.08 );
}
.mp-agregar-carrito .wc-block-components-quantity-selector::after { display: none; }
.mp-agregar-carrito .wc-block-components-quantity-selector input.qty {
	order: 2;
	flex: 1;
	min-width: 0;
	width: auto;
	height: auto;
	padding: 0;
	border: 0 !important;
	background: transparent;
	font-size: 1.1rem;
	font-weight: 700;
	text-align: center;
	color: var( --wp--preset--color--tinta );
	-moz-appearance: textfield;
}
.mp-agregar-carrito .wc-block-components-quantity-selector input.qty::-webkit-inner-spin-button,
.mp-agregar-carrito .wc-block-components-quantity-selector input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.mp-agregar-carrito .wc-block-components-quantity-selector__button {
	flex: 0 0 2.5rem;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var( --wp--preset--color--tinta );
	font-size: 1.35rem;
	line-height: 1;
	opacity: 1;
	cursor: pointer;
}
.mp-agregar-carrito .wc-block-components-quantity-selector__button--minus { order: 1; }
.mp-agregar-carrito .wc-block-components-quantity-selector__button--plus  { order: 3; }
.mp-agregar-carrito .wc-block-components-quantity-selector__button:disabled { opacity: 0.35; cursor: default; }
.mp-agregar-carrito .wc-block-components-quantity-selector:focus-within {
	border-color: var( --wp--preset--color--tinta ) !important;
	box-shadow: 0 0 0 3px color-mix( in srgb, var( --wp--preset--color--violeta ) 55%, transparent );
}

/* "¡Lo quiero!": la acción principal de la ficha, violeta como todos los botones. */
.mp-agregar-carrito .wpcbn-btn.wpcbn-btn-single {
	grid-area: quiero;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.4rem;
	margin: 0 !important;
	padding: 0.5rem 1.4rem 0.6rem;
	border: 0;
	border-radius: 999px;
	background: var( --wp--preset--color--violeta );
	color: var( --wp--preset--color--tinta );
	font-family: var( --wp--preset--font-family--titulo );
	font-size: clamp( 1.3rem, 1.1rem + 0.6vw, 1.6rem );
	font-weight: 400;
	line-height: 1.1;
	white-space: nowrap;
	box-shadow: 0 3px 0 rgb( 61 52 54 / 0.2 );
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease;
}
.mp-agregar-carrito .wpcbn-btn.wpcbn-btn-single:hover {
	background: var( --wp--preset--color--lila );
	transform: translateY( -1px );
}
.mp-agregar-carrito .wpcbn-btn.wpcbn-btn-single:focus-visible {
	outline: 3px solid var( --wp--preset--color--tinta );
	outline-offset: 3px;
}

/* "Añadir al carrito": secundaria, un enlace con ícono bajo una línea — no
   otro botón de color que le dispute la mirada a "¡Lo quiero!". */
.mp-agregar-carrito .wc-block-components-product-button {
	grid-area: carrito;
	display: flex;
	width: auto !important;
	max-width: none !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.2rem 0.8rem;
	margin-top: 1rem !important;
	padding-top: 0.55rem;
	border-top: 1.5px dashed var( --mp-linea );
}
.mp-agregar-carrito:has( > .wpcbn-btn ) .wc-block-components-product-button__button:not( [hidden] ) {
	display: inline-flex !important;
	align-items: center;
	gap: 0.55rem;
	width: auto;
	min-height: 2.75rem;
	padding: 0.3rem 0.6rem;
	border: 0;
	border-radius: 8px;
	background: transparent !important;
	color: var( --wp--preset--color--tinta ) !important;
	font-family: var( --wp--preset--font-family--texto );
	font-size: 1rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 4px;
	box-shadow: none;
	transition: text-decoration-color 0.15s ease;
}
.mp-agregar-carrito:has( > .wpcbn-btn ) .wc-block-components-product-button__button::before {
	content: "";
	flex: 0 0 auto;
	width: 1.35rem;
	height: 1.35rem;
	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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h3l2.6 12.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 7.5H6.1'/%3E%3Ccircle cx='9.5' cy='20' r='1.3'/%3E%3Ccircle cx='17.5' cy='20' r='1.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='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h3l2.6 12.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 7.5H6.1'/%3E%3Ccircle cx='9.5' cy='20' r='1.3'/%3E%3Ccircle cx='17.5' cy='20' r='1.3'/%3E%3C/svg%3E" ) center / contain no-repeat;
}
.mp-agregar-carrito:has( > .wpcbn-btn ) .wc-block-components-product-button__button:hover {
	text-decoration-color: currentColor;
}
.mp-agregar-carrito:has( > .wpcbn-btn ) .wc-block-components-product-button__button:focus-visible {
	outline: 2px solid var( --wp--preset--color--tinta );
	outline-offset: 2px;
}
/* El enlace "Ver carrito" que aparece después de sumar algo. */
.mp-agregar-carrito .wc-block-components-product-button .added_to_cart {
	font-size: 0.95rem;
	font-weight: 700;
	color: var( --wp--preset--color--tinta );
	text-underline-offset: 3px;
}

/* Sin el plugin de compra directa, "Añadir al carrito" pasa a ser la
   principal y toma el violeta. */
.mp-agregar-carrito:not( :has( > .wpcbn-btn ) ) .wc-block-components-product-button__button {
	min-height: 3.2rem;
	padding: 0.5rem 1.8rem;
	border: 0;
	border-radius: 999px;
	background: var( --wp--preset--color--violeta ) !important;
	color: var( --wp--preset--color--tinta ) !important;
	font-family: var( --wp--preset--font-family--titulo );
	font-size: 1.3rem;
	font-weight: 400;
}


/* Categorías y stock: chico, debajo de la tarjeta. */
.mp-producto-meta {
	margin: 0 !important;
	padding-left: 0.2rem;
	font-size: 0.95rem !important;
	color: var( --wp--preset--color--tinta );
}
.mp-producto-meta > * { margin: 0 !important; max-width: none !important; }
.mp-producto-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mp-producto-meta .wp-block-post-terms__prefix { font-weight: 700; }


/* -----------------------------------------------------------------------------
   Descripción: tarjeta de papel con título en pincelada lila, la bajada
   arriba y las cuatro fichas (sirve / incluye / para quién / datos) en
   columnas separadas por una línea punteada.
   -------------------------------------------------------------------------- */

.mp-producto-descripcion.mp-papel {
	--mp-borde-papel: 4px;
	--mp-redondeo: 10px;
	--mp-papel-fondo: #fffdf9;
	position: relative;
	isolation: isolate;
	margin-top: clamp( 2.6rem, 6vw, 4.5rem ) !important;
	padding: clamp( 1.4rem, 3.5vw, 2.8rem ) clamp( 1.1rem, 3.5vw, 2.8rem ) !important;
}
.mp-producto-descripcion > * { max-width: none !important; }

/* Una sola pestaña ("Descripción"): la tira de pestañas no aporta nada. */
.mp-producto-descripcion .wc-tabs:not( :has( li + li ) ) { display: none; }
.mp-producto-descripcion .woocommerce-tabs,
.mp-producto-descripcion .wc-tab { margin: 0; padding: 0; border: 0; }

.mp-producto-descripcion #tab-description {
	color: var( --wp--preset--color--tinta );
	font-size: 1.02rem;
	line-height: 1.6;
}
.mp-producto-descripcion #tab-description > h2 {
	position: relative;
	isolation: isolate;
	width: fit-content;
	margin: 0 0 1.4rem -0.2rem;
	padding: 0.05em 0.55em 0.12em 0.4em;
	font-family: var( --wp--preset--font-family--titulo );
	font-size: clamp( 1.9rem, 1.4rem + 1.4vw, 2.6rem );
	font-weight: 400;
	line-height: 1.1;
	transform: rotate( -1.5deg );
}
.mp-producto-descripcion #tab-description > h2::before {
	content: "";
	position: absolute;
	inset: 6% -0.2em 2% -0.25em;
	z-index: -1;
	background: var( --mp-pincel-lila );
	border-radius: 8px;
	filter: url( "#mp-pincelada" );
}

.mp-producto-descripcion p,
.mp-producto-descripcion ul,
.mp-producto-descripcion ol { margin: 0 0 0.7rem; }
.mp-producto-descripcion p:last-child,
.mp-producto-descripcion ul:last-child { margin-bottom: 0; }

/* Bajada: el título del material y sus párrafos, a lo ancho legible. */
.mp-ficha-intro {
	max-width: 46rem;
	margin-bottom: clamp( 1.6rem, 3vw, 2.2rem );
}
.mp-ficha-intro h3 {
	margin: 0 0 0.6rem;
	font-family: var( --wp--preset--font-family--texto );
	font-size: clamp( 1.2rem, 1.05rem + 0.5vw, 1.45rem );
	font-weight: 800;
	line-height: 1.3;
}
.mp-ficha-intro h3 strong { font-weight: inherit; }

/* Cierre firmado ("Cobrar también es una forma de cuidado"): manuscrita, como la frase de la tienda. */
.mp-producto-descripcion .mp-ficha-cierre {
	max-width: 40rem;
	margin: clamp( 1.8rem, 3.4vw, 2.6rem ) auto 0 !important;
	font-family: var( --wp--preset--font-family--mano );
	font-size: clamp( 1.35rem, 1.15rem + 0.8vw, 1.75rem );
	line-height: 1.3;
	text-align: center;
	color: var( --wp--preset--color--tinta );
	-webkit-text-stroke: 0.025em currentColor;
}

.mp-ficha-grilla {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 1.6rem 0;
	padding-top: clamp( 1.2rem, 2.4vw, 1.6rem );
	border-top: 1.5px dashed var( --mp-linea );
}
.mp-ficha-grilla .mp-ficha-seccion {
	min-width: 0;
	padding: 0 clamp( 0.9rem, 1.6vw, 1.5rem );
	border-left: 1.5px dashed var( --mp-linea );
}
.mp-ficha-grilla .mp-ficha-seccion:first-child { padding-left: 0; border-left: 0; }
.mp-ficha-grilla .mp-ficha-seccion:last-child { padding-right: 0; }

.mp-ficha-grilla h3 {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.8rem;
	font-family: var( --wp--preset--font-family--texto );
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.25;
}
.mp-ficha-grilla h3 strong { font-weight: inherit; }
.mp-ficha-seccion[data-mp-icono] h3::before {
	content: "";
	flex: 0 0 auto;
	width: 1.9rem;
	height: 1.9rem;
	background: var( --mp-icono-color, var( --wp--preset--color--tinta ) );
	-webkit-mask: var( --mp-icono ) center / contain no-repeat;
	mask: var( --mp-icono ) center / contain no-repeat;
}
.mp-ficha-seccion[data-mp-icono="corazon"] {
	--mp-icono-color: var( --mp-turquesa );
	--mp-icono: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 28'%3E%3Cpath d='M16,26 C4,18 1,11 1,7 C1,2 5,0 8,0 C11,0 14,2 16,6 C18,2 21,0 24,0 C27,0 31,2 31,7 C31,11 28,18 16,26 Z'/%3E%3C/svg%3E" );
}
.mp-ficha-seccion[data-mp-icono="hoja"] {
	--mp-icono-color: color-mix( in srgb, var( --wp--preset--color--coral ) 70%, var( --mp-coral-tinta ) );
	--mp-icono: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.5h8.5L19 7v13a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 20V4a1.5 1.5 0 0 1 1-1.5z'/%3E%3Cpath d='M14 2.5V7h5'/%3E%3Cpath d='M8.5 11.5h7M8.5 15h7M8.5 18.5h4'/%3E%3C/svg%3E" );
}
.mp-ficha-seccion[data-mp-icono="personas"] {
	--mp-icono-color: var( --wp--preset--color--violeta );
	--mp-icono: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Ccircle cx='16' cy='6' r='4.5'/%3E%3Ccircle cx='6.5' cy='8.5' r='3.5'/%3E%3Ccircle cx='25.5' cy='8.5' r='3.5'/%3E%3Cpath d='M8 23c0-5 3.6-8.5 8-8.5s8 3.5 8 8.5z'/%3E%3Cpath d='M0 23c0-4 2.8-7 6.5-7 1.3 0 2.4.3 3.4.9C8 18.6 7 20.7 6.8 23z'/%3E%3Cpath d='M32 23c0-4-2.8-7-6.5-7-1.3 0-2.4.3-3.4.9 1.9 1.7 2.9 3.8 3.1 6.1z'/%3E%3C/svg%3E" );
}
.mp-ficha-seccion[data-mp-icono="engranaje"] {
	--mp-icono-color: var( --wp--preset--color--sol );
	--mp-icono: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M10.3 1.5h3.4l.5 2.7 1.6.7 2.3-1.6 2.4 2.4-1.6 2.3.7 1.6 2.7.5v3.4l-2.7.5-.7 1.6 1.6 2.3-2.4 2.4-2.3-1.6-1.6.7-.5 2.7h-3.4l-.5-2.7-1.6-.7-2.3 1.6-2.4-2.4 1.6-2.3-.7-1.6-2.7-.5v-3.4l2.7-.5.7-1.6-1.6-2.3 2.4-2.4 2.3 1.6 1.6-.7zM12 8.2a3.8 3.8 0 1 0 0 7.6 3.8 3.8 0 0 0 0-7.6z'/%3E%3C/svg%3E" );
}

.mp-ficha-seccion ul {
	padding-left: 1.1rem;
	list-style: none;
}
.mp-ficha-seccion li {
	position: relative;
	margin: 0 0 0.45rem;
	padding: 0;
	line-height: 1.5;
}
.mp-ficha-seccion li::before {
	content: "";
	position: absolute;
	left: -0.95rem;
	top: 0.62em;
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: var( --mp-icono-color, var( --wp--preset--color--tinta ) );
}


/* -----------------------------------------------------------------------------
   Relacionados: la misma tarjeta de Tienda (parts/product-card.html), en
   una fila de cuatro, con el título en pincelada coral.
   -------------------------------------------------------------------------- */

.mp-producto-relacionados { margin-top: clamp( 2.6rem, 6vw, 4.5rem ) !important; }

.mp-producto-relacionados-titulo.wp-block-heading {
	position: relative;
	isolation: isolate;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 clamp( 1.4rem, 3vw, 2rem ) !important;
	padding: 0.05em 0.55em 0.12em 0.4em;
	font-family: var( --wp--preset--font-family--titulo );
	font-size: clamp( 1.9rem, 1.4rem + 1.4vw, 2.6rem );
	font-weight: 400;
	line-height: 1.1;
	transform: rotate( -1.5deg );
}
.mp-producto-relacionados-titulo.wp-block-heading::before {
	content: "";
	position: absolute;
	inset: 6% -0.2em 2% -0.25em;
	z-index: -1;
	background: var( --mp-pincel-coral );
	border-radius: 8px;
	filter: url( "#mp-pincelada" );
}

@media ( min-width: 901px ) {
	.mp-producto-relacionados ul.wc-block-product-template,
	.mp-producto-relacionados .wc-block-product-template {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) ) !important;
		gap: clamp( 1.2rem, 2vw, 1.8rem ) !important;
	}
}


/* =============================================================================
   PANTALLAS MEDIANAS Y CHICAS
   ========================================================================== */

@media ( max-width: 1100px ) {
	.mp-ficha-grilla { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); }
	.mp-ficha-grilla .mp-ficha-seccion:nth-child( odd ) { padding-left: 0; border-left: 0; }
	.mp-ficha-grilla .mp-ficha-seccion:nth-child( even ) { padding-right: 0; }
}

@media ( max-width: 781px ) {
	.mp-producto-columnas { flex-wrap: wrap !important; }
	.mp-producto-galeria,
	.mp-producto-detalle { flex-basis: 100% !important; }
	.mp-producto-galeria .wc-block-product-gallery-large-image__wrapper img { max-height: 62vh; }
	.mp-producto-titulo.wp-block-post-title { transform: rotate( -0.8deg ); }
}

@media ( max-width: 640px ) {
	.mp-ficha-grilla { grid-template-columns: minmax( 0, 1fr ); gap: 0; }
	.mp-ficha-grilla .mp-ficha-seccion {
		padding: 1.1rem 0 !important;
		border-left: 0;
		border-top: 1.5px dashed var( --mp-linea );
	}
	.mp-ficha-grilla .mp-ficha-seccion:first-child { padding-top: 0 !important; border-top: 0; }
	.mp-ficha-grilla { padding-top: 1.1rem; }
}

@media ( max-width: 420px ) {
	.mp-agregar-carrito:has( > .wpcbn-btn ) { column-gap: 0.7rem; }
	.mp-agregar-carrito .wc-block-components-quantity-selector { width: 7.4rem; }
	.mp-agregar-carrito .wc-block-components-quantity-selector__button { flex-basis: 2.2rem; }
	.mp-agregar-carrito .wpcbn-btn.wpcbn-btn-single { padding-inline: 0.8rem; }
}
