/*
Theme Name: Hello Elementor Child — Everything Flamenco
Template: hello-elementor
Version: 1.0.0
Description: Tema hijo de Hello Elementor para Everything Flamenco. Estilos del sistema de diseño en assets/css/ef-design-system.css.
Text Domain: hello-elementor-child
*/

/* Texto solo para lectores de pantalla (WooCommerce lo usa en precios de oferta). */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/*
 * Precio en tarjetas Elementor (.ef-price):
 * Tras filtro woocommerce_format_sale_price + Atomic:
 *   <del>regular</del> <span|ins>sale</span|ins>
 * (Atomic a menudo convierte <ins> en <span>.)
 */
.ef-price,
.ef-price-lg {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	color: #281e1e;
	font-size: 18px;
	line-height: 22px;
}
.ef-price-lg {
	font-size: 26px;
	line-height: 30px;
}
.ef-price del,
.ef-price-lg del {
	color: #69727d;
	font-weight: 400;
	text-decoration: line-through;
}
.ef-price del *,
.ef-price-lg del * {
	color: inherit;
	font-weight: inherit;
}
.ef-price ins,
.ef-price-lg ins,
.ef-price:has(del) > span,
.ef-price-lg:has(del) > span {
	color: #281e1e;
	text-decoration: none;
	font-family: inherit;
	font-size: inherit;
	font-weight: 700;
}
.ef-price ins *,
.ef-price-lg ins *,
.ef-price:has(del) > span *,
.ef-price-lg:has(del) > span * {
	color: inherit;
	font-weight: inherit;
}

/* Fila código de tela + botón "Copy" (página Materials). */
.ef-code-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.ef-copy-btn {
	flex: none;
	font-family: Manrope, Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 6px 10px;
	min-height: 28px;
	border: 1px solid #281e1e;
	border-radius: 0;
	background: transparent;
	color: #281e1e;
	cursor: pointer;
}
.ef-copy-btn:hover,
.ef-copy-btn:focus-visible {
	background: #281e1e;
	color: #fff;
}
.ef-copy-btn.is-copied {
	background: #f4bd16;
	border-color: #f4bd16;
	color: #281e1e;
}

/* Hero Contact: "us" en serif cursiva (captura del rediseño). */
.ef-hero-title em {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-style: italic;
	font-weight: 500;
}

/* Títulos de página clásicos (Hello): más aire bajo el header. */
.page-header {
	padding-top: 2.5rem;
	margin-bottom: 1.5rem;
}
.page-header .entry-title {
	margin-top: 0;
}
@media (max-width: 767px) {
	.page-header {
		padding-top: 2rem;
	}
}

/* Aire entre el contenido principal y el footer. */
.site-main {
	padding-bottom: 4rem;
}
.site-main .page-content {
	margin-bottom: 1rem;
}
@media (max-width: 767px) {
	.site-main {
		padding-bottom: 3rem;
	}
}

/*
 * Tarjetas producto (.ef-card): sin sombra en hover;
 * solo scale suave en la imagen.
 * Título y precio alineados a la izquierda (Elementor metía 8px
 * en .ef-card-title y el .ef-price quedaba más a la izquierda).
 */
.ef-card,
.ef-card:hover,
.ef-card:focus-visible {
	box-shadow: none !important;
	transition: none;
}
.ef-card .ef-card-title,
.ef-card .ef-archive-card-title,
.ef-card .ef-price {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.ef-card-media {
	overflow: hidden;
}
.ef-card .ef-card-img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
	transform: scale(1);
	transform-origin: center center;
	transition: transform 0.35s ease;
}
.ef-card:hover .ef-card-img,
.ef-card:focus-visible .ef-card-img {
	transform: scale(1.06);
}

/* Top bar: teléfono — hover solo subrayado, texto blanco (no burgundy). */
.elementor-location-header .e-2f92c82a-7e1f a,
.elementor-location-header .e-2f92c82a-7e1f a:visited,
.elementor-location-header .e-ccc51fe-7f0f,
.elementor-location-header .e-ccc51fe-7f0f a,
.elementor-location-header .e-ccc51fe-7f0f a:visited {
	color: #fff !important;
	text-decoration: none;
}
.elementor-location-header .e-2f92c82a-7e1f a:hover,
.elementor-location-header .e-2f92c82a-7e1f a:focus-visible,
.elementor-location-header .e-ccc51fe-7f0f:hover,
.elementor-location-header .e-ccc51fe-7f0f:focus-visible,
.elementor-location-header .e-ccc51fe-7f0f a:hover,
.elementor-location-header .e-ccc51fe-7f0f a:focus-visible {
	color: #fff !important;
	text-decoration: underline;
}

/* FiboSearch (icon) en la fila de iconos del header — mismo trazo/centrado que carrito. */
.ef-header-icons .dgwt-wcas-search-wrapp {
	width: 24px !important;
	min-width: 24px !important;
	max-width: 24px !important;
	height: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	overflow: visible;
	vertical-align: middle;
}
/* El preloader del plugin no debe empujar el hit-area (dejaba la lupa a 20px). */
.ef-header-icons .dgwt-wcas-search-wrapp > .dgwt-wcas-loader-circular,
.ef-header-icons .dgwt-wcas-search-wrapp > .dgwt-wcas-icon-preloader {
	position: absolute !important;
	inset: 0;
	width: 18px !important;
	height: 18px !important;
	margin: auto !important;
	opacity: 0;
	pointer-events: none;
}
.ef-header-icons .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon-open {
	width: auto;
	max-width: none;
	height: auto;
	min-height: 40px;
	align-items: center;
}
.ef-header-icons .dgwt-wcas-search-icon,
.ef-header-icons .dgwt-wcas-search-submit {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 24px !important;
	height: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
	box-sizing: border-box;
	color: #281e1e;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.ef-header-icons .dgwt-wcas-search-icon:hover,
.ef-header-icons .dgwt-wcas-search-submit:hover {
	color: #8d123f;
}
.ef-header-icons .dgwt-wcas-search-icon .ef-line-svg,
.ef-header-icons .dgwt-wcas-search-submit .ef-line-svg {
	width: 22px !important;
	height: 22px !important;
	display: block;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ef-header-icons .dgwt-wcas-sf-wrapp {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}
.ef-header-icons .dgwt-wcas-preloader.dgwt-wcas-close {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 24px !important;
	height: 24px !important;
	top: 50% !important;
	transform: translateY(-50%);
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0;
	box-sizing: border-box;
}
.ef-header-icons .dgwt-wcas-close::after,
.ef-header-icons .dgwt-wcas-close::before {
	/* el plugin dibuja la X; mantener centrada en el hit-area 24px */
	margin: 0;
}

/* Ficha producto: menos aire encima/debajo de migas y título. */
body.single-product .elementor-location-single > .ef-section {
	padding-block-start: 20px;
	padding-block-end: 48px;
}
@media (max-width: 767px) {
	body.single-product .elementor-location-single > .ef-section {
		padding-block-start: 16px;
		padding-block-end: 40px;
	}
}
