/* AYOBAN 0.15.5 · encabezado de celular y tablet, igual en todas las páginas: el logo arriba y, debajo, el buscador con marco rojo AYOBAN.
 * Es solo CSS sobre el encabezado del tema (WoodMart): el buscador sigue siendo el del tema (o el de FiboSearch, si lo reemplazás desde su ajuste).
 * Todo vive en celular y tablet (hasta 1024 px) y solo con la clase «ayb-hdr-on» en el <body>; la compu no se toca.
 * Colores de la marca: rojo #E60023 (texto rojo #CC0020), oscuro #111 / #4A4F57, gris #6B7280. */

@media (max-width: 1024px) {

	/* ---------- El logo: una fila baja con el logo centrado (0.17.1: más grande; el tema le suma 5 px de relleno arriba y abajo, que lo achicaban a la mitad) ---------- */
	body.ayb-hdr-on .whb-general-header { height: auto !important; min-height: 0 !important; }
	body.ayb-hdr-on .whb-general-header .whb-flex-row,
	body.ayb-hdr-on .whb-general-header .whb-column {
		height: 46px !important;
		min-height: 0 !important;
		max-height: 46px !important;
	}
	body.ayb-hdr-on .whb-general-header .whb-mobile-center .site-logo { height: auto !important; min-height: 0 !important; }
	body.ayb-hdr-on .whb-general-header .whb-mobile-center .wd-logo img {
		height: 32px !important;
		max-height: 32px !important;
		width: 107px !important;
		max-width: none !important;
		padding: 0 !important;
		object-fit: contain !important;
	}

	/* ---------- La franja del buscador: sin el rojo, blanca y pegada al logo ---------- */
	body.ayb-hdr-on .whb-header-bottom {
		height: auto !important;
		min-height: 0 !important;
		background-color: #fff !important;
		border-bottom: 0 !important;
	}
	body.ayb-hdr-on .whb-header-bottom .whb-flex-row,
	body.ayb-hdr-on .whb-header-bottom .whb-column {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
	}
	body.ayb-hdr-on .whb-header-bottom .whb-col-mobile { padding: 2px 0 10px; }
	/* Cuando la franja queda pegada arriba (al subir), una sombrita la separa de lo que pasa por debajo. */
	body.ayb-hdr-on .whb-sticked .whb-header-bottom { box-shadow: 0 1px 0 #E5E7EB, 0 3px 8px rgba(0, 0, 0, .06); }
	body.ayb-hdr-on .whb-header-bottom .wd-header-search-form-mobile,
	body.ayb-hdr-on .whb-header-bottom .dgwt-wcas-search-wrapp { width: 100%; max-width: none; margin: 0; padding: 0 12px; box-sizing: border-box; }

	/* ---------- El buscador del tema (WoodMart): pastilla blanca con marco rojo y lupa a la derecha ---------- */
	body.ayb-hdr-on .whb-header-bottom .wd-header-search-form-mobile .searchform {
		position: relative;
		height: 42px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}
	body.ayb-hdr-on .whb-header-bottom .wd-header-search-form-mobile .searchform input.s {
		box-sizing: border-box;
		width: 100%;
		height: 42px;
		margin: 0;
		padding: 0 46px 0 16px;
		border: 1.5px solid #E60023;
		border-radius: 21px;
		background: #fff;
		box-shadow: none;
		color: #111;
		font-size: 16px; /* 16 px para que el iPhone no agrande la pantalla al tocar */
	}
	body.ayb-hdr-on .whb-header-bottom .wd-header-search-form-mobile .searchform input.s::placeholder { color: #6B7280; opacity: 1; }
	body.ayb-hdr-on .whb-header-bottom .wd-header-search-form-mobile .searchform input.s:focus { border-color: #CC0020; box-shadow: 0 0 0 3px rgba(230, 0, 35, .14); outline: 0; }
	body.ayb-hdr-on .whb-header-bottom .wd-header-search-form-mobile .searchsubmit {
		right: 3px;
		top: 0;
		bottom: 0;
		width: 42px;
		height: 100%;
		background: transparent !important;
		color: #4A4F57;
		border-radius: 0;
		box-shadow: none;
	}
	body.ayb-hdr-on .whb-header-bottom .wd-header-search-form-mobile .searchsubmit::before,
	body.ayb-hdr-on .whb-header-bottom .wd-header-search-form-mobile .searchsubmit::after { color: #4A4F57; }

	/* ---------- Si el buscador es el de FiboSearch: la misma pastilla ---------- */
	body.ayb-hdr-on .whb-header-bottom .dgwt-wcas-search-form { margin: 0; }
	body.ayb-hdr-on .whb-header-bottom .dgwt-wcas-search-input {
		box-sizing: border-box;
		height: 42px !important;
		border: 1.5px solid #E60023 !important;
		border-radius: 21px !important;
		background-color: #fff !important;
		box-shadow: none !important;
		color: #111 !important;
		font-size: 16px !important;
	}
	body.ayb-hdr-on .whb-header-bottom .dgwt-wcas-search-input:focus { border-color: #CC0020 !important; box-shadow: 0 0 0 3px rgba(230, 0, 35, .14) !important; }
	body.ayb-hdr-on .whb-header-bottom .dgwt-wcas-search-submit,
	body.ayb-hdr-on .whb-header-bottom .dgwt-wcas-search-submit:hover { background: transparent !important; box-shadow: none !important; }
	body.ayb-hdr-on .whb-header-bottom .dgwt-wcas-ico-magnifier { fill: #4A4F57 !important; }
}
