/*
 * search.css de axartoner: la tarjeta del buscador como la de los listados (_product.php y .prdt de
 * style.css): borde gris fino, foto sin marco, «En stock · Envío 24/48h» subrayado en verde, barra de
 * color, «Ref.:» en gris, nombre centrado y precio grande a la derecha con «IVA Incl.». En el ordenador,
 * al pasar el ratón: borde verde de 3 px que baja por debajo de la tarjeta, el «¿Es compatible con mi
 * impresora?» sobre la parte de abajo de la foto (sin encogerla) y la cantidad con «añadir» (por eso las filas van más separadas).
 */
.srch-root .srch-grid:has(.axa-card) { row-gap: 18px; }
.srch-root .axa-card { display: flex; flex-direction: column; gap: 0; height: 100%; padding: 14px 10px 10px; border: 0; border-radius: 0; background: #fff; color: #222; font-family: Ubuntu, Arial, sans-serif; position: relative; }
.srch-root .axa-card::before { content: ""; position: absolute; inset: 0; border: 1px solid #cfcfcf; pointer-events: none; }
.srch-root .axa-card:hover, .srch-root .axa-card:focus-visible { border: 0; }

/* La foto, sin marco ni fondo: como la del listado */
.srch-root .axa-card .axa-img { aspect-ratio: auto; height: 178px; border: 0; border-radius: 0; background: #fff; margin: 0; }
.srch-root .axa-card .axa-img img { object-fit: contain; }

/* «¿Es este producto compatible con mi impresora?» (abre el mismo popup que el listado) */
.axa-compat { display: block; width: 100%; max-width: 229px; height: 52px; margin: 0 auto; background: url(../images/custom/product_compats_partial.gif?v=0.0.1) center / 100% 100% no-repeat; cursor: pointer; }
.axa-compat:hover { opacity: .7; }
/* Su popup (magnific, search.js) por encima de la capa, que va a z-index 2147483000 */
.mfp-bg.axa-mfp-capa { z-index: 2147483001; }
.mfp-wrap.axa-mfp-capa { z-index: 2147483002; }

.axa-envio { display: block; margin-top: 6px; color: #0acb5f; font-size: 13px; font-weight: 700; text-align: center; text-decoration: underline; text-transform: uppercase; white-space: nowrap; }
.axa-envio strong::before { content: ""; display: inline-block; width: 25px; height: 19px; margin: 0 5px 0 3px; vertical-align: bottom; background: url(../images/custom/envio-24.png) center / contain no-repeat; }

.axa-color { display: flex; height: 10px; width: 100%; margin: 8px auto 10px; flex: none; }
.axa-ref { color: #959595; font-size: 14px; line-height: 16px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-root .axa-card .axa-nombre { margin-top: 4px; color: #222; font-size: 15px; line-height: 1.35; font-weight: 400; text-align: center; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.axa-nombre mark { background: none; color: inherit; font-weight: 700; }
.srch-root .srch-oferta .axa-nombre, .srch-root .srch-oferta .axa-precio { color: #d80073; }

.axa-pie { display: flex; flex-direction: column; align-items: flex-end; margin-top: auto; padding: 10px 9px 0; line-height: 1; }
.axa-antes { color: #212121; font-size: 15px; margin-bottom: 4px; }
.axa-antes s { font-weight: 700; }
.axa-precio { color: #212121; font-size: 29px; font-weight: 700; letter-spacing: -.5px; }
.axa-iva { color: #222; font-size: 14px; line-height: 24px; }
.axa-sinstock { margin-left: 5px; font-weight: 700; color: #bc2929; }

/* Cantidad y «añadir»: solo al pasar el ratón en el ordenador, por debajo de la tarjeta */
.axa-hover { display: none; }
.axa-cant { display: flex; align-items: center; justify-content: center; width: 62px; flex: none; border: 1px solid #cfcfcf; background: #fff; }
.axa-cant button { border: 0; background: none; padding: 0 4px; color: #212121; font: 18px/20px Ubuntu, Arial, sans-serif; cursor: pointer; }
.axa-cant input { width: 25px; border: 0; padding: 0; margin: 0; background: transparent; color: #000; font: 18px Ubuntu, Arial, sans-serif; text-align: center; }
.srch-root .axa-buy { flex: 1; height: 45px; margin-left: 8px; border: 0; border-radius: 5px; background: #1fca5c; color: #fff; font: 700 18px/45px Ubuntu, Arial, sans-serif; letter-spacing: .4px; cursor: pointer; }
.srch-root .axa-buy::after { content: "\0062"; font: 24px/1 Glyphter; margin-left: 4px; position: relative; top: 3px; }
.srch-root .axa-buy.srch-anadido::after, .srch-root .axa-buy.srch-comprando::after { content: none; }
.srch-root .axa-buy.srch-comprando { opacity: .7; }

@media (min-width: 992px) {
	.srch-root .srch-grid:has(.axa-card) { row-gap: 62px; }
	.srch-root .axa-card:hover { z-index: 3; }
	.srch-root .axa-card:hover::before { border: 3px solid #0acb5f; bottom: -52px; background: #fff; z-index: -1; }
	/* Sin encoger la foto (no gustaba): el aviso de compatibles va encima de su parte de abajo */
	.axa-compat { display: none; position: absolute; left: 0; right: 0; top: 140px; z-index: 2; }
	.axa-card:hover .axa-compat { display: block; }
	.axa-card:hover .axa-envio { visibility: hidden; }
	.axa-card:hover .axa-hover { display: flex; position: absolute; left: 12px; right: 12px; bottom: -42px; }
}

@media (max-width: 767px) {
	.srch-root .axa-card { padding: 10px 6px 8px; }
	.srch-root .axa-card .axa-img { height: 119px; }
	.axa-compat { max-width: 133px; height: 30px; } /* el gif nuevo también en móvil (la tienda aún usa el png antiguo) */
	.axa-envio { font-size: 10px; }
	.axa-envio strong::before { width: 18px; height: 14px; margin: 0 3px; }
	.axa-color { height: 4px; margin: 5px auto 7px; }
	.axa-ref { font-size: 10px; }
	.srch-root .axa-card .axa-nombre { font-size: 13px; }
	.axa-pie { padding: 8px 3px 0; }
	.axa-precio { font-size: 22px; }
	.axa-iva { font-size: 10px; line-height: 16px; }
}

/* La caja de búsqueda de la capa a pantalla completa, hasta «Cerrar» (el addon la topa a 880 px) */
@media (min-width: 768px) {
	.srch-pg:not(.srch-flot):not(.srch-integ) .srch-box { max-width: none; }
}
