/* Iconos de trazo (línea) — misma familia visual que .ef-mnav-bar */
.ef-line-icon svg,
.ef-mnav-bar .ef-mnav-bar__icon svg {
	width: 20px;
	height: 20px;
	display: block;
	overflow: visible;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Todo el trazo en outline (lupa, cuenta, cesta, menú). */
.ef-line-icon svg *,
.ef-mnav-bar .ef-mnav-bar__icon svg * {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Solo las ruedas del carrito (círculos pequeños r=1.2) van rellenas. */
.ef-line-icon svg circle[r="1.2"],
.ef-mnav-bar .ef-mnav-bar__icon svg circle[r="1.2"] {
	fill: currentColor !important;
	stroke: none !important;
}

.ef-mnav-open.ef-line-icon svg {
	width: 22px;
	height: 22px;
}

/*
 * Header: lupa / cuenta / carrito — mismo tamaño y eje vertical.
 * El Menu Cart traía hit-area 22px y wrappers más altos; los e-svg 20px
 * quedaban más pequeños y bajos.
 */
.ef-header-icons {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end;
}

.ef-header-icons > .ef-icon-search,
.ef-header-icons > .ef-shortcode-host,
.ef-header-icons .dgwt-wcas-search-wrapp,
.ef-header-icons > .ef-icon-account,
.ef-header-icons .elementor-menu-cart__toggle,
.ef-header-icons .elementor-menu-cart__toggle_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	min-height: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
	box-sizing: border-box;
	vertical-align: middle;
	overflow: visible;
}

/* El panel lateral vive dentro del wrapper: no forzar 24×24 ahí. */
.ef-header-icons .elementor-widget-woocommerce-menu-cart,
.ef-header-icons .elementor-menu-cart__wrapper,
.ef-header-icons .elementor-menu-cart__toggle_wrapper {
	display: block !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: normal !important;
	overflow: visible !important;
	position: static !important;
}
/* Container = lightbox full viewport; el panel blanco es __main (420px) */
.ef-header-icons .elementor-menu-cart__container {
	width: 100vw !important;
	max-width: 100vw !important;
	height: 100% !important;
	min-height: 100% !important;
	max-height: none !important;
}
.ef-header-icons .elementor-menu-cart__main {
	width: 420px !important;
	max-width: 100vw !important;
}

/*
 * Tamaño fijo desde el primer paint (FA / eicon / line-svg).
 * Evita el salto mayor→menor cuando ef-line-icons.js sustituye el SVG.
 */
.ef-header-icons > .ef-icon-search svg,
.ef-header-icons > .ef-icon-account svg,
.ef-header-icons > .ef-icon-search i,
.ef-header-icons > .ef-icon-account i,
.ef-header-icons > .ef-icon-search .e-font-icon-svg,
.ef-header-icons > .ef-icon-account .e-font-icon-svg,
.ef-header-icons > .ef-icon-search .e-font-icon-svg svg,
.ef-header-icons > .ef-icon-account .e-font-icon-svg svg,
.ef-header-icons .elementor-menu-cart__toggle .elementor-button-icon svg,
.ef-header-icons .elementor-menu-cart__toggle .elementor-button-icon i,
.ef-header-icons .elementor-menu-cart__toggle .elementor-button-icon .eicon {
	width: 22px !important;
	height: 22px !important;
	max-width: 22px !important;
	max-height: 22px !important;
	flex: 0 0 auto;
	font-size: 22px !important;
	line-height: 22px !important;
	box-sizing: border-box;
}

.ef-header-icons .elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	line-height: 0;
	overflow: visible;
}

.ef-header-icons .elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon > i,
.ef-header-icons .elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon > .eicon,
.ef-header-icons .elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon > .e-font-icon-svg {
	display: none !important;
}

.ef-header-icons .elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon .elementor-button-icon-qty {
	position: absolute;
	top: -6px;
	right: -8px;
}

/* Fallback si el widget cart no está dentro de .ef-header-icons */
.elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	line-height: 0;
}

.elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon svg.ef-line-svg {
	width: 22px;
	height: 22px;
}

.elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon > i,
.elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon > .eicon,
.elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon > .e-font-icon-svg {
	display: none !important;
}

.elementor-menu-cart__toggle .elementor-button-icon.ef-line-icon .elementor-button-icon-qty {
	position: absolute;
	top: -6px;
	right: -8px;
}

/* Cuadro de búsqueda del header (abre con la lupa). */
.ef-header-icons {
	position: relative;
}
.ef-header-search {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	z-index: 120;
	width: min(360px, calc(100vw - 32px));
	background: #fff;
	border: 1px solid #cfcfcf;
	box-shadow: 0 8px 24px rgba(40, 30, 30, .12);
	padding: 0;
}
.ef-header-search[hidden] {
	display: none !important;
}
.ef-header-search__form {
	display: flex;
	align-items: stretch;
	margin: 0;
}
.ef-header-search__form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	font-family: Manrope, Arial, sans-serif;
	font-size: 14px;
	color: #281e1e;
	background: #fff;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.ef-header-search__form input[type="search"]::placeholder {
	color: #69727d;
}
.ef-header-search__form input[type="search"]:focus {
	outline: none;
}
.ef-header-search__form button[type="submit"] {
	flex: none;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid #cfcfcf;
	border-radius: 0;
	background: #f4bd16;
	color: #281e1e;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ef-header-search__form button[type="submit"]:hover,
.ef-header-search__form button[type="submit"]:focus-visible {
	background: #ffd71f;
	outline: none;
}
.ef-header-search__form button svg {
	width: 20px;
	height: 20px;
}
@media (max-width: 767px) {
	.ef-header-search {
		right: -8px;
		width: min(300px, calc(100vw - 24px));
	}
}
