/* AYOBAN 0.15.5 · barra de abajo, pantalla «Comprar» y barra fija de la ficha.
 * Todo lo de las barras vive en celular y tablet (hasta 1024 px). En la compu no se ve nada de esto, salvo la pantalla «Comprar».
 * Colores de la marca: rojo #E60023 (texto rojo #CC0020), oscuro #111 / #2B2F36, gris #F3F4F6. */

/* ---------- Por defecto (compu, o sin lo necesario): escondido ---------- */
.ayb-bm,
.ayb-pf,
.ayb-pt,
.ayb-ph,
.ayb-pi,
.ayb-fav-invitado { display: none; }

.ayb-bm-badge {
	position: absolute;
	top: -5px;
	right: -9px;
	box-sizing: border-box;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: #E60023;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.ayb-bm-badge[hidden] { display: none; }

@media (max-width: 1024px) {

	/* ---------- Se esconde lo del tema que estas piezas reemplazan ---------- */
	body.ayb-barra-on .wd-toolbar,
	body.ayb-ficha-on .wd-toolbar,
	body.ayb-ficha-on .wd-sticky-btn { display: none !important; }

	/* Lugar abajo para que la barra no tape el final de la página. */
	body.ayb-barra-on,
	body.ayb-ficha-on { padding-bottom: calc(var(--ayb-bm-h, 64px) + env(safe-area-inset-bottom, 0px)); }
	body.ayb-ficha-on { --ayb-bm-h: 72px; }
	body.ayb-barra-on .scrollToTop,
	body.ayb-ficha-on .scrollToTop { bottom: calc(var(--ayb-bm-h, 64px) + 12px + env(safe-area-inset-bottom, 0px)) !important; }

	/* ---------- 1) Barra de abajo ---------- */
	body .ayb-bm {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 399;
		box-sizing: border-box;
		margin: 0;
		padding: 0 0 env(safe-area-inset-bottom, 0px);
		background: #fff;
		border-top: 1px solid #E5E7EB;
		font-family: inherit;
	}
	body .ayb-bm ul {
		display: flex;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	body .ayb-bm li {
		flex: 1 1 0;
		min-width: 0;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	body .ayb-bm a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		box-sizing: border-box;
		height: 64px;
		padding: 0 2px;
		color: #4A4F57;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}
	body .ayb-bm li.is-on a { color: #CC0020; }
	body .ayb-bm .ayb-bm-ico {
		position: relative;
		display: flex;
		width: 26px;
		height: 26px;
	}
	body .ayb-bm .ayb-bm-txt {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 11px;
		line-height: 14px;
		font-weight: 500;
	}
	body .ayb-bm li.is-on .ayb-bm-txt { font-weight: 600; }
	body .ayb-bm a:focus-visible { outline: 2px solid #111; outline-offset: -3px; border-radius: 6px; }

	/* En la ficha del producto la barra de siempre se cambia por la del producto. Si el JavaScript no encuentra el formulario de compra
	   (body.ayb-ficha-fallo) o no anda (<noscript>, abajo de todo en el HTML), se vuelve a la barra de siempre. */
	body.ayb-ficha-on .ayb-bm { display: none; }
	body.ayb-ficha-fallo .ayb-bm { display: block; }
	body.ayb-ficha-fallo .ayb-pf,
	body.ayb-ficha-fallo .ayb-pt,
	body.ayb-ficha-fallo .ayb-pi { display: none !important; }
	body.ayb-ficha-fallo { --ayb-bm-h: 64px; }

	/* ---------- 3) Ficha del producto: barra fija de abajo ---------- */
	body.ayb-ficha-on .ayb-pf {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 399;
		box-sizing: border-box;
		margin: 0;
		padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid #E5E7EB;
		font-family: inherit;
	}
	body.ayb-ficha-on .ayb-pf-fila {
		display: flex;
		align-items: center;
		gap: 6px;
	}
	body.ayb-ficha-on .ayb-pf-ico {
		position: relative;
		flex: none;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 48px;
		color: #2B2F36;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}
	body.ayb-ficha-on .ayb-pf-ico[hidden] { display: none; }
	body.ayb-ficha-on .ayb-pf-carrito .ayb-bm-badge { top: 4px; right: 2px; }
	body.ayb-ficha-on .ayb-pf button {
		flex: 1 1 0;
		min-width: 0;
		min-height: 48px;
		margin: 0;
		padding: 0 6px;
		border-radius: 24px;
		font-family: inherit;
		font-size: 13px;
		line-height: 16px;
		font-weight: 600;
		text-transform: none;
		letter-spacing: 0;
		cursor: pointer;
		box-shadow: none;
	}
	body.ayb-ficha-on .ayb-pf .ayb-pf-agregar { border: 2px solid #111; background: #fff; color: #111; }
	body.ayb-ficha-on .ayb-pf .ayb-pf-comprar { border: 0; background: #E60023; color: #fff; font-size: 14px; font-weight: 700; }
	body.ayb-ficha-on .ayb-pf button[disabled] { opacity: .6; cursor: default; }
	body.ayb-ficha-on .ayb-pf-ico:focus-visible,
	body.ayb-ficha-on .ayb-pf button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

	/* El aviso corto («primero elegí las opciones…») arriba de la barra. */
	body.ayb-ficha-on .ayb-pf-aviso {
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: calc(100% + 8px);
		box-sizing: border-box;
		padding: 10px 14px;
		border-radius: 10px;
		background: #111;
		color: #fff;
		font-size: 13px;
		line-height: 18px;
		text-align: center;
	}
	body.ayb-ficha-on .ayb-pf-aviso[hidden] { display: none; }

	/* ---------- 3) Ficha del producto: pestañas fijas de arriba ---------- */
	body.ayb-ficha-on .ayb-pt {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 399;
		box-sizing: border-box;
		background: #fff;
		border-bottom: 1px solid #E5E7EB;
		font-family: inherit;
		visibility: hidden;
		transform: translateY(-100%);
	}
	body.ayb-ficha-on .ayb-pt.is-on { visibility: visible; transform: none; transition: transform .18s ease-out; }
	/* La barra negra de WordPress (solo la ve quien administra): 46 px en tablet chica, 32 px en tablet grande, y en celular se va con el scroll. */
	@media (min-width: 601px) and (max-width: 782px) { body.admin-bar.ayb-ficha-on .ayb-pt { top: 46px; } }
	@media (min-width: 783px) { body.admin-bar.ayb-ficha-on .ayb-pt { top: 32px; } }
	body.ayb-ficha-on .ayb-pt ul {
		display: flex;
		margin: 0;
		padding: 0;
		list-style: none;
		overflow-x: auto; /* si alguna vez no entran, se deslizan (nunca se cortan) */
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	body.ayb-ficha-on .ayb-pt ul::-webkit-scrollbar { display: none; }
	body.ayb-ficha-on .ayb-pt li { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; }
	body.ayb-ficha-on .ayb-pt li[hidden] { display: none; }
	body.ayb-ficha-on .ayb-pt a {
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		min-height: var(--ayb-pt-h, 44px); /* el JS lo sube si el tema tiene una cabecera pegada arriba, para taparla justo */
		padding: 0 7px;
		border-bottom: 3px solid transparent;
		color: #2B2F36;
		font-size: 12.5px;
		line-height: 16px;
		font-weight: 500;
		text-decoration: none;
		white-space: nowrap;
		-webkit-tap-highlight-color: transparent;
	}
	body.ayb-ficha-on .ayb-pt a.is-on { color: #CC0020; font-weight: 600; border-bottom-color: #E60023; }
	body.ayb-ficha-on .ayb-pt a:focus-visible { outline: 2px solid #111; outline-offset: -3px; }


	/* ---------- 3) Ficha del producto: encabezado compacto propio (volver, buscar, compartir) ---------- */
	/* El encabezado del tema (franja roja, buscador y categorías negras) se va; el compacto y las pestañas quedan siempre a la vista.
	   Si la ficha no tiene formulario de compra (body.ayb-ficha-fallo) o no anda el JavaScript, vuelve el del tema. */
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .whb-header,
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .elementor-location-header { display: none !important; }
	/* El carrusel de categorías (tarjetas negras) de la plantilla de Elementor de la ficha: con el encabezado propio sobra (hay buscador y «volver»).
	   Van en dos reglas separadas: si un navegador viejo no entiende «:has», igual se esconde el carrusel. */
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .category-slider { display: none !important; }
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .elementor-element:has(> .category-slider) { display: none !important; }
	body.ayb-ficha-enc { --ayb-ph-h: 52px; }
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) { padding-top: calc(var(--ayb-ph-h) + 44px); }
	body.ayb-ficha-on.ayb-ficha-enc .ayb-ph {
		display: flex;
		align-items: center;
		gap: 4px;
		position: fixed;
		top: var(--ayb-top, 0px);
		left: 0;
		right: 0;
		z-index: 400; /* un punto más que las pestañas, para que la lista de resultados del buscador las tape */
		box-sizing: border-box;
		height: var(--ayb-ph-h);
		margin: 0;
		padding: 0 6px 0 2px;
		background: #fff;
		font-family: inherit;
	}
	body.ayb-ficha-fallo .ayb-ph { display: none !important; }
	body.ayb-ficha-enc .ayb-ph-btn {
		flex: none;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: #2B2F36;
		box-shadow: none;
		cursor: pointer;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}
	body.ayb-ficha-enc .ayb-ph-btn[hidden] { display: none; }
	body.ayb-ficha-enc .ayb-ph-btn:focus-visible,
	body.ayb-ficha-enc .ayb-ph-busca input:focus-visible,
	body.ayb-ficha-enc .ayb-ph-busca button:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
	/* El hueco del medio: ahí va el buscador DEL TEMA (el JS lo trae del encabezado del tema, así se reemplaza por FiboSearch desde su propio ajuste).
	   El formulario simple de respaldo solo se ve si el tema no tiene buscador. */
	body.ayb-ficha-enc .ayb-ph-medio { flex: 1 1 0; min-width: 0; position: relative; display: flex; align-items: center; height: 100%; }
	body.ayb-ficha-enc .ayb-ph.ayb-ph-tema .ayb-ph-busca { display: none; }
	body.ayb-ficha-enc .ayb-ph-medio > .wd-search-form { flex: 1 1 0; min-width: 0; width: 100%; margin: 0; padding: 0; position: relative; display: block; }
	body.ayb-ficha-enc .ayb-ph-medio > .wd-search-form .searchform { position: relative; margin: 0; height: 38px; box-sizing: border-box; padding: 0; border: 0; background: transparent; box-shadow: none; }
	body.ayb-ficha-enc .ayb-ph-medio > .wd-search-form .searchform input.s {
		box-sizing: border-box;
		height: 38px;
		width: 100%;
		margin: 0;
		padding: 0 44px 0 14px;
		border: 1.5px solid #E60023; /* marco rojo AYOBAN */
		border-radius: 19px;
		background: #fff;
		box-shadow: none;
		color: #111;
		font-size: 16px; /* 16 px para que el iPhone no agrande la pantalla al tocar */
	}
	body.ayb-ficha-enc .ayb-ph-medio > .wd-search-form .searchform input.s::placeholder { color: #6B7280; opacity: 1; }
	body.ayb-ficha-enc .ayb-ph-medio > .wd-search-form .searchsubmit { right: 2px; top: 0; bottom: 0; width: 40px; height: 100%; background: transparent; color: #4A4F57; border-radius: 0; box-shadow: none; }
	body.ayb-ficha-enc .ayb-ph-medio > .wd-search-form .searchsubmit::before,
	body.ayb-ficha-enc .ayb-ph-medio > .wd-search-form .searchsubmit::after { color: #4A4F57; }
	/* La lista de resultados baja a todo el ancho, pegada debajo de la barra. */
	body.ayb-ficha-enc .ayb-ph-medio .wd-search-results {
		position: fixed;
		top: calc(var(--ayb-top, 0px) + var(--ayb-ph-h));
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
		max-height: calc(100vh - var(--ayb-top, 0px) - var(--ayb-ph-h) - 72px);
	}
	body.ayb-ficha-enc .ayb-ph-medio .dgwt-wcas-search-wrapp { max-width: none; width: 100%; margin: 0; }
	body.ayb-ficha-enc .ayb-ph-medio .dgwt-wcas-search-input { border: 1.5px solid #E60023 !important; border-radius: 19px !important; background-color: #fff !important; box-shadow: none !important; }
	body.ayb-ficha-enc .ayb-ph-busca {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		height: 38px;
		margin: 0;
		box-sizing: border-box;
		border: 1.5px solid #E60023; /* marco rojo AYOBAN (igual que el buscador del tema) */
		border-radius: 19px;
		overflow: hidden;
		background: #fff;
	}
	body.ayb-ficha-enc .ayb-ph-busca input[type="search"] {
		flex: 1;
		min-width: 0;
		height: 100%;
		margin: 0;
		padding: 0 4px 0 14px;
		border: 0;
		border-radius: 0;
		outline: 0;
		background: transparent;
		box-shadow: none;
		color: #111;
		font-family: inherit;
		font-size: 16px; /* 16 px para que el iPhone no agrande la pantalla al tocar */
		-webkit-appearance: none;
		appearance: none;
	}
	body.ayb-ficha-enc .ayb-ph-busca input[type="search"]::placeholder { color: #6B7280; opacity: 1; }
	body.ayb-ficha-enc .ayb-ph-busca button {
		flex: none;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: #4A4F57;
		box-shadow: none;
		cursor: pointer;
	}
	/* Las pestañas van pegadas abajo del encabezado y no se esconden. */
	body.ayb-ficha-on.ayb-ficha-enc .ayb-pt {
		top: calc(var(--ayb-top, 0px) + var(--ayb-ph-h));
		visibility: visible;
		transform: none;
		transition: none;
	}
	body.ayb-ficha-fallo.ayb-ficha-enc { padding-top: 0; }

	/* ---------- 3) Ficha del producto: filas «Compra Protegida» y «Envío o retiro en mano» ---------- */
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .ayb-pi {
		display: block;
		margin: 14px 0 0;
		padding: 0;
		list-style: none;
		border-top: 1px solid #EEF0F2;
		font-family: inherit;
	}
	body.ayb-ficha-enc .ayb-pi-fila {
		display: flex;
		align-items: center;
		gap: 12px;
		margin: 0;
		padding: 12px 2px;
		list-style: none;
		border-bottom: 1px solid #EEF0F2;
		color: #2B2F36;
	}
	body.ayb-ficha-enc .ayb-pi-fila svg { flex: none; }
	body.ayb-ficha-enc .ayb-pi-protegida svg { color: #CC0020; }
	body.ayb-ficha-enc .ayb-pi-txt { display: flex; flex-direction: column; min-width: 0; }
	body.ayb-ficha-enc .ayb-pi-txt strong { color: #111; font-size: 14px; line-height: 20px; font-weight: 600; }
	body.ayb-ficha-enc .ayb-pi-txt span { color: #4A4F57; font-size: 12.5px; line-height: 17px; font-weight: 400; }

	/* ---------- 3) Ficha del producto (0.15.2): el orden natural y sin lo que sobra ---------- */
	/* Arriba van la foto, el título, las estrellas y el precio (como en AliExpress). Abajo: Compra Protegida, Envío, Opiniones, Vendedor, Descripción y, al final, los recomendados. */

	/* El hueco blanco de arriba: el tema deja un contenedor de «migas de pan» vacío (unos 80 px). En esta ficha no hacen falta (están el encabezado y el botón de volver). */
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .e-con:has(> .wd-el-breadcrumbs),
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .wd-el-breadcrumbs,
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .woocommerce-breadcrumb { display: none !important; }

	/* 16 px de aire entre la foto y el título (después ahí van las fotitos de las opciones). */
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .elementor-widget-wd_single_product_title,
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .entry-summary > h1.product_title { margin-top: 16px; }

	/* El título, chico y claro; el precio, grande y en negrita (el JS marca cuál es el precio de este producto). */
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) h1.product_title {
		font-size: 16px !important;
		line-height: 22px !important;
		font-weight: 500 !important;
	}
	body.ayb-ficha-enc .price.ayb-precio-g,
	body.ayb-ficha-enc .price.ayb-precio-g .amount,
	body.ayb-ficha-enc .price.ayb-precio-g ins,
	body.ayb-ficha-enc .price.ayb-precio-g ins .amount {
		font-size: 28px !important;
		line-height: 34px !important;
		font-weight: 700 !important;
		color: #111;
	}
	body.ayb-ficha-enc .price.ayb-precio-g del,
	body.ayb-ficha-enc .price.ayb-precio-g del .amount {
		font-size: 15px !important;
		line-height: 20px !important;
		font-weight: 400 !important;
		color: #6B7280;
	}

	/* «18 disponibles», la cantidad y el botón naranja del tema: la cantidad se cambia en el carrito y se compra con la barra de abajo.
	   Siguen en la página (la barra los usa), solo se esconden. Con «ayb-ficha-js» (el JavaScript ya anduvo): si no, queda el botón del tema para poder comprar. */
	body.ayb-ficha-js.ayb-ficha-enc:not(.ayb-ficha-fallo) .summary p.stock,
	body.ayb-ficha-js.ayb-ficha-enc:not(.ayb-ficha-fallo) .entry-summary p.stock,
	body.ayb-ficha-js.ayb-ficha-enc:not(.ayb-ficha-fallo) .elementor-widget-wd_single_product_add_to_cart p.stock,
	body.ayb-ficha-js.ayb-ficha-enc:not(.ayb-ficha-fallo) form.cart p.stock,
	body.ayb-ficha-js.ayb-ficha-enc:not(.ayb-ficha-fallo) form.cart .quantity,
	body.ayb-ficha-js.ayb-ficha-enc:not(.ayb-ficha-fallo) form.cart .single_add_to_cart_button { display: none !important; }

	/* «Categoría: …» (y etiquetas, código) no van en esta ficha. */
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .elementor-widget-wd_single_product_meta,
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .product_meta { display: none !important; }

	/* Las preguntas y respuestas públicas de la ficha se sacan: están en la hoja del globito («Preguntale al vendedor»).
	   Solo con «ayb-ficha-js»: sin JavaScript la barra de abajo (con el globito) no se ve, y ahí las preguntas de la ficha son la única forma de preguntar. */
	body.ayb-ficha-js.ayb-ficha-enc.ayb-ficha-hoja:not(.ayb-ficha-fallo) #preguntas,
	body.ayb-ficha-js.ayb-ficha-enc.ayb-ficha-hoja:not(.ayb-ficha-fallo) section.ayb-pr,
	body.ayb-ficha-js.ayb-ficha-enc.ayb-ficha-hoja:not(.ayb-ficha-fallo) .ayb-mov-oculto { display: none !important; }
	/* Un bloque de recomendados que viniera antes que la descripción pasa al final (solo cambia el orden; el carrusel ni se entera). */
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .ayb-mov-ultimo { order: 99; }

	/* «Nuevo» / «Usado»: queda justo debajo del precio. */
	body.ayb-ficha-enc .ayb-precio-cond { margin-bottom: 0; }
	body.ayb-ficha-enc .ayb-precio-g + .ayb-condicion { margin: 4px 0 0; font-size: 14px; line-height: 20px; }

	/* El corazón de «lista de deseos»: botón redondo sobre la foto, abajo a la derecha (el de ampliar está abajo a la izquierda). */
	body.ayb-ficha-enc .ayb-corazon-padre { position: relative; }
	body.ayb-ficha-enc .ayb-corazon {
		position: absolute;
		right: 15px;
		bottom: 15px;
		z-index: 4;
		margin: 0;
		padding: 0;
		line-height: 0;
	}
	body.ayb-ficha-enc .ayb-corazon .wd-wishlist-btn { margin: 0; padding: 0; display: flex; }
	body.ayb-ficha-enc .ayb-corazon .wd-wishlist-btn > a,
	body.ayb-ficha-enc .ayb-corazon .wd-wishlist-btn .wd-action-icon,
	body.ayb-ficha-enc .ayb-corazon .wd-wishlist-btn .wd-action-icon::before { color: #E60023; }
	body.ayb-ficha-enc .ayb-corazon .wd-wishlist-btn > a.added { background-color: #E60023; }
	body.ayb-ficha-enc .ayb-corazon .wd-wishlist-btn > a.added .wd-action-icon,
	body.ayb-ficha-enc .ayb-corazon .wd-wishlist-btn > a.added .wd-action-icon::before { color: #fff; }
	/* El texto («Agregar a la lista de deseos») no se ve, pero lo leen los lectores de pantalla; tampoco se despliega al tocar. */
	body.ayb-ficha-enc .ayb-corazon .wd-action-text,
	body.ayb-ficha-enc .ayb-corazon .wd-wishlist-btn > a:hover .wd-action-text,
	body.ayb-ficha-enc .ayb-corazon .wd-wishlist-btn > a:focus .wd-action-text {
		position: absolute;
		width: 1px;
		height: 1px;
		max-width: 1px !important;
		margin: -1px;
		padding: 0 !important;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
	}
	/* El corazón de quien todavía no entró a su cuenta: mismo botón redondo, lleva a ingresar. */
	body.ayb-ficha-enc .ayb-corazon .ayb-fav-invitado {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 45px;
		height: 45px;
		margin: 0;
		padding: 0;
		border-radius: 50%;
		background: #fff;
		color: #E60023;
		box-shadow: 0 0 5px rgba(0, 0, 0, .08);
		line-height: 0;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}
	body.ayb-ficha-enc .ayb-corazon .ayb-fav-invitado:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
	/* El lugar donde estaba el corazón queda vacío: se esconde para que no sume un hueco. */
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .elementor-widget-wd_single_product_wishlist_button:not(:has(.wd-wishlist-btn)),
	body.ayb-ficha-enc:not(.ayb-ficha-fallo) .e-con:has(> .e-con-inner > .elementor-widget-wd_single_product_wishlist_button:only-child):not(:has(.wd-wishlist-btn)) { display: none !important; }

	/* Las opiniones, ahora dentro de la columna del producto: sin caja, a todo el ancho, con el botón «Mostrar todas las opiniones» bien a la vista. */
	body.ayb-ficha-enc .ayb-cs {
		margin: 0;
		padding: 18px 0 0;
		background: transparent;
		border: 0;
		border-radius: 0;
	}
	body.ayb-ficha-enc .ayb-cs-titulo { margin: 0 0 6px; font-size: 18px; line-height: 24px; font-weight: 700; color: #111; }
	body.ayb-ficha-enc .ayb-cs .ayb-calif-resumen { margin: 0 0 6px; font-size: 14px; }
	body.ayb-ficha-enc .ayb-cs .ayb-calif-item { padding: 12px 0; }
	body.ayb-ficha-enc .ayb-cs-todas { margin: 14px 0 0; }
	body.ayb-ficha-enc .ayb-cs-todas.ayb-cs-todas-movil { display: block; }
	body.ayb-ficha-enc .ayb-cs a.ayb-cs-todas-enlace {
		display: block;
		box-sizing: border-box;
		width: 100%;
		padding: 12px 16px;
		border: 1.5px solid #111;
		border-radius: 10px;
		background: #fff;
		color: #111 !important;
		font-size: 15px;
		font-weight: 600;
		line-height: 22px;
		text-align: center;
		text-decoration: none !important;
	}
	body.ayb-ficha-enc .ayb-cs a.ayb-cs-todas-enlace:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

	@media (prefers-reduced-motion: reduce) {
		body.ayb-ficha-on .ayb-pt.is-on { transition: none; }
	}

	/* ---------- 2) Pantalla «Comprar»: ocupa todo el ancho, sin el título de página del tema ---------- */
	body.ayb-es-comprar .wd-page-title,
	body.ayb-es-comprar .page-title,
	body.ayb-es-comprar .woocommerce-breadcrumb,
	body.ayb-es-comprar .entry-header { display: none; }
	body.ayb-es-comprar { overflow-x: clip; }
	body.ayb-es-comprar .ayb-cm {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: 0;
	}
}

@media (max-width: 1024px) {
	/* Una categoría sin productos: el tema (WoodMart) agrega otro buscador debajo del aviso. Ya está el de arriba: se saca. */
	body.ayb-barra-on .no-products-footer > .wd-search-form { display: none; }
	body.ayb-barra-on .no-products-footer:not(:has(> :not(.wd-search-form))) { display: none; }
}

@media (max-width: 359px) {
	body .ayb-bm .ayb-bm-txt { font-size: 10px; }
	body.ayb-ficha-on .ayb-pt a { font-size: 12px; padding: 0 5px; }
	body.ayb-ficha-on .ayb-pf button { font-size: 12px; }
	body.ayb-ficha-on .ayb-pf .ayb-pf-comprar { font-size: 13px; }
	body.ayb-ficha-on .ayb-pf-ico { width: 38px; }
}

/* ---------- 2) Pantalla «Comprar» ---------- */

/* El tema (WoodMart) puede armar esta página con una columna lateral escondida: trae el botón de las tres rayitas pegado al borde y un
   hueco gris arriba y abajo. La pantalla no usa columna lateral, así que se saca todo eso y la pantalla ocupa el ancho. */
body.ayb-es-comprar .wd-sidebar-opener,
body.ayb-es-comprar .wd-sidebar,
body.ayb-es-comprar .wd-close-side { display: none !important; }
body.ayb-es-comprar .wd-content-layout { padding-top: 0 !important; padding-bottom: 0 !important; }
body.ayb-es-comprar .site-content { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

.ayb-cm {
	box-sizing: border-box;
	background: #fff;
	color: #111;
	font-family: inherit;
}
.ayb-cm *,
.ayb-cm *::before,
.ayb-cm *::after { box-sizing: border-box; }

.ayb-cm-busca { padding: 12px 16px; background: #E60023; }
.ayb-cm-form {
	display: flex;
	height: 44px;
	margin: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}
.ayb-cm-form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #111;
	font-family: inherit;
	font-size: 14px;
}
.ayb-cm-form input[type="search"]::placeholder { color: #6B7280; opacity: 1; }
.ayb-cm-form button {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #2B2F36;
	color: #fff;
	cursor: pointer;
	box-shadow: none;
}
.ayb-cm-form button:focus-visible,
.ayb-cm-form input[type="search"]:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
.ayb-cm-fibo { margin: 0; }

.ayb-cm-franja {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	background: #F3F4F6;
	color: #2B2F36;
	font-size: 12.5px;
	line-height: 16px;
	font-weight: 500;
}
.ayb-cm-franja svg { flex: none; color: #CC0020; }

.ayb-cm-cuerpo { display: flex; align-items: flex-start; }

.ayb-cm-cats {
	flex: none;
	position: sticky;
	top: 0;
	width: 112px;
	max-height: 100vh;
	overflow-y: auto;
	background: #F3F4F6;
	align-self: flex-start;
}
.ayb-cm-cats ul { margin: 0; padding: 0; list-style: none; }
.ayb-cm-cats li { margin: 0; padding: 0; list-style: none; }
.ayb-cm .ayb-cm-cat {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 8px 8px 8px 12px;
	border-left: 3px solid transparent;
	background: transparent;
	color: #2B2F36;
	font-size: 13px;
	line-height: 17px;
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
	-webkit-tap-highlight-color: transparent;
}
.ayb-cm .ayb-cm-cat.is-on {
	border-left-color: #E60023;
	background: #fff;
	color: #CC0020;
	font-weight: 600;
}
.ayb-cm .ayb-cm-cat:focus-visible { outline: 2px solid #111; outline-offset: -3px; }

.ayb-cm-subs { flex: 1; min-width: 0; padding: 14px 12px 24px; }
.ayb-cm-panel[hidden] { display: none; }
.ayb-cm-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ayb-cm-cab h2 {
	margin: 0;
	padding: 0;
	color: #111;
	font-size: 16px;
	line-height: 22px;
	font-weight: 600;
	text-transform: none;
}
.ayb-cm .ayb-cm-todo {
	flex: none;
	color: #CC0020;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}
.ayb-cm-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.ayb-cm-grid li { margin: 0; padding: 0; list-style: none; }
.ayb-cm .ayb-cm-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: #222;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.ayb-cm-foto {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: #F3F4F6;
	color: #5B616B;
}
.ayb-cm-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Sin foto: dibujito de una imagen (el mismo trazo de la maqueta), puesto con CSS para no repetirlo en el HTML. */
.ayb-cm-sinfoto {
	background-repeat: no-repeat;
	background-position: center;
	background-size: 28px 28px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B616B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4zM4 15l4.5-4.5 4 4 3-3L20 16M9 9.5h.01'/%3E%3C/svg%3E");
}
.ayb-cm-grid li:nth-child(6n+1) .ayb-cm-foto { background-color: #FDECEF; }
.ayb-cm-grid li:nth-child(6n+2) .ayb-cm-foto { background-color: #EAEEFD; }
.ayb-cm-grid li:nth-child(6n+3) .ayb-cm-foto { background-color: #FFF1CC; }
.ayb-cm-grid li:nth-child(6n+4) .ayb-cm-foto { background-color: #E4F4EA; }
.ayb-cm-grid li:nth-child(6n+5) .ayb-cm-foto { background-color: #F0EAFA; }
.ayb-cm-grid li:nth-child(6n+6) .ayb-cm-foto { background-color: #E6F2F7; }
.ayb-cm-nombre {
	max-width: 100%;
	color: #222;
	font-size: 12px;
	line-height: 15px;
	font-weight: 500;
	text-align: center;
	overflow-wrap: anywhere;
}
.ayb-cm .ayb-cm-tile:hover .ayb-cm-nombre,
.ayb-cm .ayb-cm-tile:focus-visible .ayb-cm-nombre { color: #CC0020; }
.ayb-cm .ayb-cm-tile:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 8px; }
.ayb-cm-sin { margin: 14px 0 10px; color: #4A4F57; font-size: 13px; line-height: 18px; }
.ayb-cm .ayb-cm-ver {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border: 1.5px solid #111;
	border-radius: 22px;
	color: #111;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.ayb-cm-vacio { padding: 24px 16px; text-align: center; color: #4A4F57; }

@media (min-width: 601px) and (max-width: 1024px) {
	.ayb-cm-cats { width: 168px; }
	.ayb-cm .ayb-cm-cat { font-size: 14px; }
	.ayb-cm-subs { padding: 18px 20px 28px; }
	.ayb-cm-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 20px 14px; }
}

/* En la compu la pantalla se ve igual, centrada y más ancha. */
@media (min-width: 1025px) {
	.ayb-cm { max-width: 1100px; margin: 0 auto; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
	.ayb-cm-cats { width: 220px; }
	.ayb-cm-subs { padding: 20px 24px 32px; }
	.ayb-cm-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 22px 16px; }
}
