/*
 * Level — Auditoría front 2026-10-25
 * Selectores propios (.lvl-*) + un único ajuste de orden, acotado a ficha de
 * producto y a móvil, sobre la estructura de Woodmart. Sin !important global
 * y sin tocar precios, stock ni el DOM de compra.
 */

/* UX-01 · acciones de portada visibles bajo la cabecera en móvil/tablet */
.lvl-hero-cta {
	display: none;
}
@media (max-width: 1024px) {
	.lvl-hero-cta {
		display: flex;
		gap: 8px;
		align-items: stretch;
		justify-content: center;
		max-width: 1200px;
		margin: 0 auto;
		padding: 8px 12px;
		box-sizing: border-box;
	}
	.lvl-hero-cta__btn {
		flex: 1 1 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 10px 12px;
		border-radius: 999px;
		font-size: 16px;
		line-height: 1.15;
		font-weight: 600;
		text-align: center;
		text-decoration: none;
		box-sizing: border-box;
	}
	.lvl-hero-cta__btn--primary {
		background: #a63d68;
		color: #fff;
		border: 1px solid #a63d68;
	}
	.lvl-hero-cta__btn--primary:hover,
	.lvl-hero-cta__btn--primary:focus-visible {
		background: #8d3256;
		border-color: #8d3256;
		color: #fff;
	}
	.lvl-hero-cta__btn--secondary {
		background: #fff;
		color: #6b1040;
		border: 1px solid #a63d68;
	}
	.lvl-hero-cta__btn--secondary:hover,
	.lvl-hero-cta__btn--secondary:focus-visible {
		background: #f7e9f0;
		color: #6b1040;
	}
}

/* COM-04 · en móvil, resumen (nombre/precio/estado/compra) antes de la galería */
@media (max-width: 768px) {
	body.single-product.lvl-buy-first .product-image-summary-inner {
		display: flex !important;
		flex-direction: column !important;
	}
	body.single-product.lvl-buy-first .product-image-summary-inner > .summary {
		order: 1;
		width: 100%;
	}
	body.single-product.lvl-buy-first .product-image-summary-inner > .product-images {
		order: 2;
		width: 100%;
	}
	/* La galería deja de ocupar la primera pantalla; se conserva completa. */
	body.single-product.lvl-buy-first .product-images .woocommerce-product-gallery {
		max-height: none;
	}
}

/* SEO-01 · encabezado de archivo comercial */
.lvl-archive-head {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 20px 4px;
	box-sizing: border-box;
}
.lvl-archive-head__title {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
	color: #1c1c1c;
}
.lvl-archive-head__intro {
	margin: 0 0 10px;
	max-width: 70ch;
	font-size: 1rem;
	line-height: 1.5;
	color: #4a4a4a;
}
@media (max-width: 768px) {
	.lvl-archive-head {
		padding: 12px 16px 2px;
	}
}

/* COM-02 · caja de presupuesto, sin formulario propio */
.lvl-quote-box {
	margin: 16px 0 8px;
	padding: 14px 16px;
	border: 1px solid #e3c9d6;
	border-radius: 10px;
	background: #fbf6f9;
}
.lvl-quote-box__note {
	margin: 0 0 10px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #3d3338;
}
.lvl-quote-box__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	background: #a63d68;
	color: #fff;
	border: 1px solid #a63d68;
	text-decoration: none;
}
.lvl-quote-box__btn:hover,
.lvl-quote-box__btn:focus-visible {
	background: #8d3256;
	border-color: #8d3256;
	color: #fff;
}

/* UX-02 · mecanismo opt-in para el hero: aplicar la clase CSS
   `lvl-hero-compact` a la sección del hero en Elementor. No se aplica
   automáticamente a ninguna sección existente. */
@media (max-width: 768px) {
	.lvl-hero-compact {
		padding-top: 12px !important;
		padding-bottom: 12px !important;
	}
	.lvl-hero-compact .elementor-widget-image img {
		max-height: 38vh;
		width: auto;
		margin: 0 auto;
	}
}
.lvl-mobile-buybar { display:none; }
@media(max-width:768px){
 body.lvl-mobile-purchase { padding-bottom:116px; }
 body.lvl-mobile-purchase .elementor-element-1ea6bbc > .e-con-inner { flex-direction:column!important; }
 body.lvl-mobile-purchase .elementor-element-1ea6bbc > .e-con-inner > .elementor-widget { width:100%;margin:0 0 8px; }
 body.lvl-mobile-purchase .elementor-widget-wd_single_product_title h1 {font-size:28px;line-height:1.15;}
 body.lvl-mobile-purchase .elementor-element-eda41a2 {position:static!important;width:100%;}
 body.lvl-mobile-purchase .woocommerce-product-gallery img:not(.zoomImg) { max-height:240px;object-fit:contain; }
 body.lvl-mobile-purchase .thumbnails img {max-height:56px;}
 body.lvl-mobile-purchase .lvl-mobile-buybar {display:flex;position:fixed;left:0;right:0;bottom:calc(56px + env(safe-area-inset-bottom));z-index:350;gap:12px;align-items:center;justify-content:space-between;min-height:54px;padding:8px 12px;background:#fff;border-top:1px solid #e3c9d6;box-shadow:0 -2px 8px #0001;}
 .lvl-mobile-buybar__price {font-weight:700;color:#742545;font-size:16px;}
 .lvl-mobile-buybar__button {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border-radius:7px;background:#a63d68;color:#fff;font-weight:600;}
 .lvl-mobile-buybar__button:hover,.lvl-mobile-buybar__button:focus {color:#fff;background:#8d3256;}
 .lvl-mobile-buybar__button:focus-visible {outline:2px solid #1c1c1c;outline-offset:3px;}
 #lvl-primary-buy {scroll-margin-top:110px;}
}
.lvl-buying-guide {border:1px solid #e3c9d6;border-radius:10px;padding:14px 18px;background:#fff;}
.lvl-buying-guide summary {cursor:pointer;color:#742545;font-weight:600;font-size:20px;min-height:44px;line-height:1.4;}
.lvl-buying-guide[open] summary {margin-bottom:16px;}
.lvl-mobile-purchase .elementor-element-1ea6bbc > .e-con-inner > p.price {font-size:21px;margin:0 0 8px;width:100%;}
.lvl-mobile-price-display {display:none;}
@media(max-width:768px){.lvl-mobile-purchase .lvl-mobile-price-display {display:block;width:100%;margin:0 0 10px;font-weight:700;font-size:21px;color:#a63d68;}}
